Re: Can a Multi-Threaded GTKMM Application Use std::thread Rather Than Glib::Thread?



On 17/10/11, Chris Vine wrote:
> 
> I see no particular reason to split things up as you propose: just
> use one threading interface or the other for everything.  Just make
> sure you have called Glib::thread_init() if using glib < 2.24, or
> Glib::thread_init(), g_type_init() or instantiated Gtk::Main if
> using glib < 2.32, in order to make glib thread safe, and use
> Glib::Dispatcher for inter-thread communication, and you are ready
> to go.

Hmmm. Are you saying that instead of calling Glib::Thread::create, I
could call the equivalent for std::thread? If feasible, it would be a
definite improvement over what I am currently doing.

Chris Gordon-Smith
www.simsoup.info


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