Re: mutex doubt

2011-12-07 Thread Tristan Van Berkom
2011/12/8 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - : >>On 6 December 2011 18:14, Tristan Van Berkom wrote: >>> Or, can glib programs which don't make use of GObject use >>> threads at all ? >> >>sure. > > Out of curiosity, do you recommend me to use GObject to any glib program? O

Re: mutex doubt

2011-12-06 Thread Emmanuele Bassi
hi; On 6 December 2011 18:14, Tristan Van Berkom wrote: > Or, can glib programs which don't make use of GObject use > threads at all ? sure. > Must _those_ programs still call g_thread_init() > before using threads ? before GLib 2.31, yes; after, no. > It seems that the pthread library itself

Re: mutex doubt

2011-12-06 Thread Tristan Van Berkom
On Wed, Dec 7, 2011 at 2:30 AM, wrote: > 2011/12/6 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - > : >>        Do I need to call g_thread_init() manually before calling g_mutex_new >> (), in a glib only application? Or is it auto called by default when I call >> g_type_init() and t

Re: mutex doubt

2011-12-06 Thread jcupitt
2011/12/6 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - : >        Do I need to call g_thread_init() manually before calling g_mutex_new > (), in a glib only application? Or is it auto called by default when I call > g_type_init() and therefore I don't need to do it? Older versions