Re: Are Mach Semaphore Process Shared?
Re: Are Mach Semaphore Process Shared?
- Subject: Re: Are Mach Semaphore Process Shared?
- From: Abdulla Kamar <email@hidden>
- Date: Fri, 2 Oct 2009 12:22:15 +1000
Mach ports are similar to file descriptors in the sense that the mapping of name to port only exists within one process.
I don't know whether it's possible or not, but you may be able to copy the mach port that represents the the semaphore (semaphore_t is a typedef of mach_port_t) to the remote process by sending it as out-of-line data in a mach message.
Ah okay, thanks for that. On a related note is it possible to pass a POSIX named semaphore in Mac OS X over a UNIX socket?
--
Thank you
Abdulla
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden