Re: Fwd: glib thread create API



On Tue, Nov 12, 2013, at 12:47, Jonathan S. Shapiro wrote:
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));

You can use GPrivate to get this effect -- allocate something in a
GPrivate and during thread teardown, the cleanup handler for that thing
will be called.

Hope that helps.

Cheers


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]