Re: Initializing threads



What I found was

If you use GLib from more than one thread, you must initialize the
thread system by calling g_thread_init().

hmm, but I have only one thread, not more than one!

RAT

ok, but to be honest, g_thread_init() is fixing my problem. 

On Tue, 2004-10-05 at 15:47 -0400, Tristan Van Berkom wrote:
On Tue, 05 Oct 2004 21:39:21 +0200, RAT <rat mujmail cz> wrote:
Hi, I'm new in threads and this is error that I have

GLib-ERROR **: The thread system is not yet initialized.

I'm just trying to create one threaded function with

g_thread_create(read_func,NULL,FALSE,NULL);

Where's problem?

g_thread_init():
    http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html

Funny there is no mention of `g_thread_init()' in the description

Cheers,
                        -Tristan







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