2011/12/6 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
<marcelo.va...@claro.com.br>:
>        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 of glib had optional threading support, so you needed
to call g_thread_init() yourself.

Newer versions (in the last 12 months or so? can't remember, but about
that) have made thread support required and the threading system is
now inited for you as part of glib startup.

It's harmless to call g_thread_init() more than once.

John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
  • mutex doubt Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
    • Re: mutex ... jcupitt
      • Re: mu... Tristan Van Berkom
        • Re... Emmanuele Bassi
          • ... Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
            • ... Tristan Van Berkom
              • ... Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
        • RE... Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -
          • ... Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP -

Reply via email to