Re: [Gc] Determine if current thread is attached
ivmai at mail.ru
Sat May 26 12:35:18 PDT 2012
Sat, 26 May 2012 21:24:23 +0200 Alex Rønne Petersen <xtzgzorex at gmail.com>:
> Is there a way to determine whether the currently-executing thread is
> attached to the GC?
GC_thread_is_registered (exists in 7.3+ only)
> 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!
> Gc mailing list
> Gc at linux.hpl.hp.com
More information about the Gc