• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using MIG RPC between 2 threads inside a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using MIG RPC between 2 threads inside a process (From: Dario <email@hidden>)
 >Re: Using MIG RPC between 2 threads inside a process (From: Steve Checkoway <email@hidden>)
 >Re: Using MIG RPC between 2 threads inside a process (From: Paul Forgey <email@hidden>)
 >Re: Using MIG RPC between 2 threads inside a process (From: Paul Forgey <email@hidden>)

  • Prev by Date: Re: Trick to compiling Apple3Com905x?
  • Next by Date: how to test atomicity?
  • Previous by thread: Re: Using MIG RPC between 2 threads inside a process
  • Next by thread: Re: Using MIG RPC between 2 threads inside a process
  • Index(es):
    • Date
    • Thread