This lock is not for the event_base

The events and event_base is only accessed from this thread.

The lock is for the server object. I want to safely read the
following server->is_socket_connected, and server->socket_descriptor.

On Thu, Apr 8, 2010 at 1:52 PM, W.C.A. Wijngaards <[email protected]>wrote:

> On 04/08/2010 01:46 PM, Sherif Fanous wrote:
> > Can anyone please tell me what I'm doing wrong here? Is it an internal
> > libevent problem, or is my code messing up somewhere?
> >             pthread_rwlock_rdlock(&(server->lock));
>
> wrlock.
>
> event_add modifies the event base.
>
> Best regards,
>   Wouter
>

Reply via email to