Re: [Gc] Determine if current thread is attached
Ivan Maidanski
ivmai at mail.ru
Sat May 26 12:35:18 PDT 2012
Hi Alex,
Sat, 26 May 2012 21:24:23 +0200 Alex Rønne Petersen <xtzgzorex at gmail.com>:
> Hi,
>
> 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...
yes
Regards,
Ivan
>
> Thanks in advance!
>
> Regards,
> Alex
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>
More information about the Gc
mailing list