[Mono-list] g_thread_init ( )

Paolo Molaro lupus@ximian.com
Mon, 20 Oct 2003 16:14:13 +0200


On 10/20/03 Piyush  Garyali wrote:
> As the io-layer implementation of CreateThread (which uses
> pthread_xxx inside) is used on Linux, I fail to understand the use of
> the function g_thread_init() in both mini[mini.c:mini_init()] as well
> as interperter[interp.c:main()] when no thread functionality is used
> from Glib.

It is required to make the data structures which we use from GLib 
behave in a thread-safe way.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better