On Mon, Apr 4, 2011 at 11:18 PM, Lassi Tuura <[email protected]> wrote: > Hi, > >> Is there a particular reason you didn't use __thread? > > Ah forgot one important detail. We do need to arrange a call to > trace_cache_free() on thread exit. This is easy with pthread_key_create(), > but I understand not so easy for __thread. > > 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? -Arun _______________________________________________ Libunwind-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/libunwind-devel
