• 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: Rép : Using dead notification with mach ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rép : Using dead notification with mach ports


  • Subject: Re: Rép : Using dead notification with mach ports
  • From: Stéphane Letz <email@hidden>
  • Date: Mon, 13 Sep 2004 20:27:17 +0200


What is important for a Mach semaphore is which task it is associated with at creation. If it is associated with the client task and the client goes away, then operations on that semaphore by other tasks will fail (with an appropriate error code). So, choosing which task to associate with is important for widely shared semaphores.

What do you mean by "which task it is associated with at creation"?

In my case the server main thread (the one that handle the client request : like new_client.....) will create the semaphore and pass them to clients. then client will wait on their semaphore, and another thread of the server *or* another thread of another client will signal the semaphore.

Is there any problem with this approach?

Thanks

Stephane

_______________________________________________
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: 
 >Rép : Using dead notification with mach ports (Modifié par Stéphane Letz) (From: Mail Delivery Subsystem <email@hidden>)
 >Re: Rép : Using dead notification with mach ports (Modifié par Stéphane Letz) (From: Stéphane Letz <email@hidden>)
 >Re: Rép : Using dead notification with mach ports (Modifié par Stéphane Letz) (From: Jim Magee <email@hidden>)
 >Re: Rép : Using dead notification with mach ports (From: Stéphane Letz <email@hidden>)
 >Re: Rép : Using dead notification with mach ports (From: Jim Magee <email@hidden>)

  • Prev by Date: Re: Self compiled gdb doesn't work with Xcode
  • Next by Date: Re: Self compiled gdb doesn't work with Xcode
  • Previous by thread: Re: Rép : Using dead notification with mach ports
  • Next by thread: ditto.c source?
  • Index(es):
    • Date
    • Thread