Attach and detach C threads to D runtime

Sean Kelly via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 22 21:28:45 PDT 2014


On Thursday, 22 May 2014 at 19:21:26 UTC, David Soria Parra via 
Digitalmars-d-learn wrote:
>
> I know that thread_detachByAddr exists, but the Thread object 
> from
> Thread.getAll or Thread.opApply doesn't expose the thread 
> address.

Would thread_detachThis work for you?  Alternately, you can use 
pthread_self to get the current thread's address on Posix and 
GetCurrentThreadId on Windows.


More information about the Digitalmars-d-learn mailing list