Re: Integrate the Glib main loop into the libev event loop (C++)

2021-07-14 Thread Oleksandr Kozlov
Jul 7, 2021 at 9:21 PM Marc Lehmann wrote: > On Wed, Jul 07, 2021 at 08:59:01AM +0200, Oleksandr Kozlov < > aleks.a.koz...@gmail.com> wrote: > > I've tried to replace std::map with std::vector, but this didn't help. > > Actually, I used std::list instead of std::v

Re: Integrate the Glib main loop into the libev event loop (C++)

2021-07-06 Thread Oleksandr Kozlov
elect or poll as backend I will try to use select or poll as a backend. Thanks for the idea. On Wed, Jul 7, 2021 at 3:21 AM Marc Lehmann wrote: > On Wed, Jul 07, 2021 at 12:06:37AM +0200, Oleksandr Kozlov < > aleks.a.koz...@gmail.com> wrote: > > from the EV::Glib Perl module [3]

Integrate the Glib main loop into the libev event loop (C++)

2021-07-06 Thread Oleksandr Kozlov
I am trying to integrate the Glib main loop into the libev event loop. Actually, I am using their C++ wrappers: glibmm [1] and ev++ [2]. The main idea was taken from the EV::Glib Perl module [3]. However, my implementation sometimes hangs when I try to perform some async task (e.g., reading a text