Re: Can a Multi-Threaded GTKMM Application Use std::thread Rather Than Glib::Thread?
- From: Chris Gordon-Smith <c gordonsmith gmail com>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: GTKmm <gtkmm-list gnome org>
- Subject: Re: Can a Multi-Threaded GTKMM Application Use std::thread Rather Than Glib::Thread?
- Date: Mon, 17 Oct 2011 23:40:01 +0100
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]