[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] infinite loop caused by incorrect behaviour of win32_dispatch() after certain amount of calls to event_active()
On Wed, Sep 13, 2017 at 11:15 PM, Sten Kultakangas <ratkaisut@xxxxxxxxx> wrote:
> Hello
>
> I have implemented a thread pool for a network service application and ran
> into the following issue. After a certain quite large amount of calls to the
> event_active() function from a thread other than the main I/O thread
> event_base_dispatch() hangs causing high CPU usage. No events are dispatched
> after that.
Hi,
Looks like some problem with threads interactions, do you use
evthread_use_windows_threads() ?
And can you try adding event_enable_debug_mode(), just before calling
any of other libevent functions
Azat.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.