Re: When to call g_thread_init(), again...



> "If your program uses threads (or other libraries that use threads),
> then you must call g_thread_init() before calling any other GLib
> function"

It's not using threads that is the key point here. Calling
g_thread_init() is. That already changes some GLib functions to work
in different ways, incompatible with how they work before
g_thread_init() is called. Whether any threads then are created or not
is not relevant, not for this discussion at least;)

--tml


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