Bad thread_attachThis() design

Alex Rønne Petersen xtzgzorex at gmail.com
Tue Jan 10 01:27:25 PST 2012


 From comments:

/**
  * Registers the calling thread for use with the D Runtime.  If this 
routine
  * is called for a thread which is already registered, the result is 
undefined.
  */

I think this is bad design. There is no good way to know if the current 
thread is attached to the runtime, so how am I supposed to work around this?

- Alex


More information about the Digitalmars-d-learn mailing list