Re: C++11: Deprecate Glib::Threads



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]