Suspend/Interrupt threads

Nrgyzer nrgyzer at gmail.com
Sun Jan 30 09:55:47 PST 2011


Hey,

how can I interrupt/suspend threads in D2? core.thread only provides
start(), join() and similar, but nothing like interrupt() in JAVA.

I have a thread which sleeps for some seconds. Does join() interrupts
the Thread.sleep()-call? I don't want that the user have to wait some
seconds because a thread is running, but sleeping.


Thanks in advance!


More information about the Digitalmars-d mailing list