DCD as a library - stops working after some thread is created.
Vadim Lopatin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 11 09:24:53 PDT 2017
On Friday, 11 August 2017 at 08:17:32 UTC, Vadim Lopatin wrote:
> I'm using DCD as a library in DlangIDE.
> All DCD calls are made from separate thread.
> DCD works ok until some thread is created (e.g. to invoke DUB
> for building).
/// call this function after DCD ModuleCache is instantiated to
reproduce issue
void testDCDFailAfterThreadCreation() {
import core.thread;
Thread thread = new Thread(delegate() {
Thread.sleep(dur!"msecs"(2000));
});
thread.start();
thread.join();
}
More information about the Digitalmars-d-learn
mailing list