 |
 |
SysV IPC supported in OS X?
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status:
Offline
|
|
Actually, despite Apple's claims to the contrary, I'm pretty sure SysV IPC is not supported in OS X. (Using msgget() returns "function not supported".)
I keep seeing references that I need to use these "Mach IPC" functions instead, but I can't seem to find any real documentation. Has anyone used these functions? Any good documentation anywhere?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status:
Offline
|
|
|
|
Geekspiff - generating spiffdiddlee software since before you began paying attention.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status:
Offline
|
|
Thanks for the link, but I saw those before.
What I'd like to see is some sort of usage summary, sample code, or some such thing. All I've been able to find is a high level overview, like the one above.
Not that I'm in love with Mach IPC, I just need a replacement for the SysV stuff...
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status:
Offline
|
|
Originally posted by qyn:
Thanks for the link, but I saw those before.
What I'd like to see is some sort of usage summary, sample code, or some such thing. All I've been able to find is a high level overview, like the one above.
Not that I'm in love with Mach IPC, I just need a replacement for the SysV stuff...
I don't know of what you're looking for, but I do know that Apple recommends against using raw Mach threads in quite a few places on their developer site. Have you considered using posix threads instead?
Here are a couple of links to pthread stuff, just because I happen to be using 'em right now for the 1st time myself: - http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html
- http://www.math.arizona.edu/swig/pthreads/threads.html
|
Geekspiff - generating spiffdiddlee software since before you began paying attention.
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status:
Offline
|
|
Originally posted by smeger:
I don't know of what you're looking for, but I do know that Apple recommends against using raw Mach threads in quite a few places on their developer site. Have you considered using posix threads instead?
Here are a couple of links to pthread stuff, just because I happen to be using 'em right now for the 1st time myself:- http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html
- http://www.math.arizona.edu/swig/pthreads/threads.html
Oh, sorry, maybe I wasn't clear. I'm not interested in how to do threading, but how to do communication between different threads or processes. SysV IPC allowed different processes to asynchronously message each other, which is what I'm trying to do.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
SysV IPC definitely wasn't supported on 10.1, although I have a vague recollection of claims it exists on 10.2.
Mach messaging might well be the way to go. However, you might find the higher-level CoreFoundation functions are easier, such as CFMessagePort.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Hey, there's always pipes...
|
|
[vash:~] banana% killall killall
Terminated
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|