October 01, 2014 [Issue 649] concatenation hangs in threaded program | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=649 badlink <andrea.9940@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrea.9940@gmail.com Resolution|--- |FIXED --- Comment #6 from badlink <andrea.9940@gmail.com> --- The program exits normally on Arch Linux (DMD 2.067.0-b1) I have updated the test case: import core.thread; import std.string; extern(C) uint sleep(uint secs); class Test { Thread thr; void printStats() { sleep(1); char[] r; r ~= "a"; } this() { thr = new Thread(&printStats); thr.start(); } ~this() { thr.join(); } } void main() { Test t = new Test(); destroy(t); } -- |
Copyright © 1999-2021 by the D Language Foundation