Thread termination conditions in dmd 2.064.2
Sönke Ludwig
sludwig at outerproduct.org
Thu Nov 7 02:47:00 PST 2013
Am 07.11.2013 11:28, schrieb Atila Neves:
> Looking like a bug I think. Changed the code to this and it crashes again:
>
> import std.concurrency;
>
> private void threadWriter() {
> for(bool running = true; running;) {
> receive(
> (Tid i) {
> },
> (OwnerTerminated trm) {
> running = false;
> }
> );
> }
> }
>
> void main() {
> spawn(&threadWriter);
> }
>
>
> This is on Arch Linux 64-bit with the latest package BTW (updated this
> morning).
Possibly related: https://github.com/rejectedsoftware/vibe.d/issues/371
More information about the Digitalmars-d-learn
mailing list