RE: [Libevent-users] Trivial Example of Multi-Thread Issue

2013-10-24 Thread Dave Zielinski
> event_base_dispatch() returns immediately if there are no events added to > the event base, and no events active in the event base. Thanks Nick; yep you're right... for some reason I wasn't expecting that LOL -dz *** To unsub

Re: [Libevent-users] Trivial Example of Multi-Thread Issue

2013-10-24 Thread Nick Mathewson
On Thu, Oct 24, 2013 at 2:02 PM, Dave Zielinski wrote: > Hi guys, > > I’ve been trying to track down a bug with multi-thread use of libevent. > I’m only using the timeout feature of libevent (no fd’s). I’ve dumbed down > the issue to a simple example which is copied in below.This code > dea

[Libevent-users] Trivial Example of Multi-Thread Issue

2013-10-24 Thread Dave Zielinski
Hi guys, I've been trying to track down a bug with multi-thread use of libevent. I'm only using the timeout feature of libevent (no fd's). I've dumbed down the issue to a simple example which is copied in below.This code deadlocks waiting for the event to occur. [ Psuedo Code ] * kick