Re: C++11: Deprecate Glib::Threads
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtkmm-list gnome org
- Subject: Re: C++11: Deprecate Glib::Threads
- Date: Sat, 29 Aug 2015 23:17:39 +0100
On Sat, 29 Aug 2015 13:49:49 -0700
Andy Tai <atai atai org> wrote:
A related generic question: would a C++ based implementation of
dispatcher be more efficient than the glib (C) based ones?
I am not sure what you mean. It already uses the glibmm wrapper of glib
so far as relevant.
Do you mean that it should stop using glib/glibmm? That is impossible
because Glib::Dispatcher uses the glib/glibmm main loop, and that is
its whole purpose: to execute callbacks in a program's main loop
(normally the main loop used by GTK+) when invoked by a worker thread.
If you were thinking of std::promise and std::future, they are
completely different. Those provide potentially blocking waits, not
asynchronous delivery to a program loop.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]