[Gc] Determine if current thread is attached

Alex Rønne Petersen xtzgzorex at gmail.com
Sat May 26 12:24:23 PDT 2012


Hi,

Is there a way to determine whether the currently-executing thread is
attached to the GC?

I *could* call GC_register_my_thread and switch on the return value,
but this feels like a very dirty hack, since in the non-DUPLICATE
case, I need to detach the thread again...

Thanks in advance!

Regards,
Alex


More information about the Gc mailing list