[Libevent-users] Newbie question about threads
Victor
victor.box2 at globo.com
Mon Aug 6 14:03:26 EDT 2007
Hi Niels,
On Monday 06 August 2007, you wrote:
> I would like to figure out ways in which libevent can be more thread
> friendly without requiring everyone to use threads. So, thread
> specific store for the event base seems like a good idea and I would
> certainly appreciate to see patches.
Just a quick thought:
What about something simple like registering mutex lock/unlock
callbacks? If there is registered mutex callbacks, libevent calls it
before and after making changes on a event base.
Something like:
event_base_register_lock( event_base , myMutexlock );
event_base_register_unlock( event_base , myMutexunlock );
Regards,
Victor
More information about the Libevent-users
mailing list