thread and gc.fullCollect

Bradley Smith digitalmars-com at baysmith.com
Thu Jan 11 18:20:37 PST 2007


I don't know anyway to check this, but won't the garbage collection 
interrupt the sleeping thread? I would expect the std.c.time.sleep() 
call to be interrupted when the garbage collector stops all threads to 
operate. Is there anyway to check whether the sleep call was interrupted?

Frank Benoit (keinfarbton) wrote:
>> Program exited normally.
> 
> Now you know, there was not segmentation fault. Fine :)
> 
> Hm, perhaps your class was collected while running?


More information about the Digitalmars-d-learn mailing list