Concurrency on Windows (spawn)

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 18 04:57:04 PDT 2014


Windows: in a D-DLL I'm trying to spawn a thread. However, 
nothing happens

auto myThread = spawn(&myFunction, thisTid);
send(myThread, arg);

The thread is never called. Any ideas? Thanks!

PS In an old DLL it used to work, there I called it with only one 
argument, i.e. spawn(&myFunction). Is thisTid messing it up, do I 
need to pass something else?


More information about the Digitalmars-d-learn mailing list