Re: Thread safety?



+++ Murray Cumming [27/10/04 14:38 +0200]:
> 
> It might be nice if you rewrote the FAQ entry that I stole from you, to
> make it clearer:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/FAQ/html/index.html#id2543317

Having a look at that FAQ, I thought i'd give gdk_threads a go.. Since
Gtk::Main doesn't initialise the GDK/Glib threads stuff (upon code
inspection), I have to do it myself, right? Here is what I did:

    g_thread_init(NULL);
    gdk_threads_init();
    m_pkMain = new Gtk::Main(argc, argv);

..but the call to the Gtk::Main constructor caused a segfault. Do I not
have to set this stuff up (is it done elsewhere)?

I know you guys are probably sick of hearing about threads :)

-- 
Regards,
Miles Izzo
gaia at  11:46:23 up 285 days, 14:44, 10 users,  load average: 1.35, 1.16, 1.05



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