On Tue, Nov 12, 2013, at 12:47, Jonathan S. Shapiro wrote:You can use GPrivate to get this effect -- allocate something in a
> Actually, given your explanation, I think that a very simple change to
> the current API would likely suffice for everything I need, and would
> be fully portable:
>
> g_thread_register_cleanup_function(void (*)(GThread));
GPrivate and during thread teardown, the cleanup handler for that thing
will be called.
Hope that helps.