• 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: inter-process locks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inter-process locks


  • Subject: Re: inter-process locks
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 19 Feb 2011 12:13:13 -0700

Alexander Cohen wrote:

Is there anyway to do interprocess locks using cocoa ( like a Mutex in Win32 )? The best i've found is not cocoa and uses flock but the man pages say its advisory only which is kindof scary.


man semget
man semop
man semctl

They're part of the Posix IPC functions, so obviously work across processes.

Like other Posix IPC functions, the proper use of the semaphore functions can be inscrutable. I recommend searching for working examples rather than puzzling it out from man pages alone.

  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Connect iPad to Servlets on a Web Server
  • Next by Date: NSCalendar dateByAddingComponents: yields inconsistent results
  • Previous by thread: Re: inter-process locks
  • Next by thread: Getting NSScrollView to ignore scrolling
  • Index(es):
    • Date
    • Thread