Re: Using MIG RPC between 2 threads inside a process
Re: Using MIG RPC between 2 threads inside a process
- Subject: Re: Using MIG RPC between 2 threads inside a process
- From: Steve Checkoway <email@hidden>
- Date: Sun, 19 Sep 2004 05:30:55 -0700
On Sep 18, 2004, at 4:50 PM, Paul Forgey wrote:
If you happen to signal the conditional between the CheckMyCondition
and pthread_cond_wait, the consumer will go into the wait with
requests in the queue. Signal while holding the mutex and two things
will happen: the consumer will notice work in the queue before
waiting, or it will be waiting.
That's a very good point, I hadn't thought of that.
- Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden