Re: Fwd: glib thread create API
- From: Ryan Lortie <desrt desrt ca>
- To: "Jonathan S. Shapiro" <shap eros-os org>
- Cc: gtk-devel-list gnome org
- Subject: Re: Fwd: glib thread create API
- Date: Tue, 12 Nov 2013 15:33:13 -0500
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]