www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - detaching a thread from druntime <2.067

reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
If I have a thread that I need to detach from druntime, I can call 
thread_detachInstance, but for 2.066, this function does not exist. Is 
there any way to do this in 2.066? I notice there is a 
thread_detachByAddr, but I'm not sure how to get a ThreadAddr out of a 
Thread..
Dec 15 2014
parent reply "Sean Kelly" <sean invisibleduck.org> writes:
On Tuesday, 16 December 2014 at 04:56:10 UTC, Ellery Newcomer 
wrote:
 If I have a thread that I need to detach from druntime, I can 
 call thread_detachInstance, but for 2.066, this function does 
 not exist. Is there any way to do this in 2.066? I notice there 
 is a thread_detachByAddr, but I'm not sure how to get a 
 ThreadAddr out of a Thread..
thread_detachThis?
Dec 16 2014
parent Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 12/16/2014 10:41 AM, Sean Kelly wrote:
 On Tuesday, 16 December 2014 at 04:56:10 UTC, Ellery Newcomer wrote:
 If I have a thread that I need to detach from druntime, I can call
 thread_detachInstance, but for 2.066, this function does not exist. Is
 there any way to do this in 2.066? I notice there is a
 thread_detachByAddr, but I'm not sure how to get a ThreadAddr out of a
 Thread..
thread_detachThis?
the thread I want to detach isn't currently running.
Dec 16 2014