Re: [Libevent-users] libevent with EV_WRITE question

2010-06-03 Thread Sherif Fanous
Thank you for an excellent explanation Cheers On Thu, Jun 3, 2010 at 4:26 PM, Nick Mathewson wrote: > On Sat, May 29, 2010 at 6:44 AM, Sherif Fanous > wrote: > > Hi > > I have the following scenario, and want to verify the expected outcome > > pthread_wrlock_rdlock(&(server->lock)); > > if (se

Re: [Libevent-users] libevent with EV_WRITE question

2010-06-03 Thread Nick Mathewson
On Sat, May 29, 2010 at 6:44 AM, Sherif Fanous wrote: > Hi > I have the following scenario, and want to verify the expected outcome > pthread_wrlock_rdlock(&(server->lock)); > if (server->is_connected) { >     struct send_packets_args *send_packets_args; >     send_packets_args = malloc(sizeof (st

[Libevent-users] libevent with EV_WRITE question

2010-05-29 Thread Sherif Fanous
Hi I have the following scenario, and want to verify the expected outcome pthread_wrlock_rdlock(&(server->lock)); if (server->is_connected) { struct send_packets_args *send_packets_args; send_packets_args = malloc(sizeof (struct send_packets_args)); // Initialize send_packets_args to