Hi,

>> Any thoughts how to free per-thread data with __thread? Any tricks to get 
>> the destructor call effect without risking the calloc() call?
> 
> Does pthread_cleanup_push() work?

Can you expand on how you'd see it used? I understand the documentation says 
it's restricted to one lexical scope which seems not easily adapted to tracing.

As far as I can tell GLIBC implementation is basically just an object on stack, 
destroyed if stack is unwound. I guess thread cancellation or exit does the 
latter automatically.

Regards,
Lassi
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to