Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interprocess communication



Hi all

I want some advice on Inter Process Communication (IPC). I have one
dynamic library(dylib) and one application(app). Actually I am porting
something from Windows so I will write about windows code.

In Application, I create one event object (eventName). Now, I create
one thread and call waitForSingleObject and now it is waiting for
someone to set the event and the  it will come out. In DLL I create
one event object of same name (eventName). Now, whenever I need, set
the event in DLL then in application that thread comes out of wait and
executes the code and again start waiting.

I want to implement similar kind of thing in Mac also. I want to
create one event with same name in both process and application should
notified whenever dylib set the event.

I do not know that I have to do with event or something else. DLL is
standard C++ dynamic library and application is standard C++ tool
(command line utility).

Please suggest me to solve this issue.

Thanks and regards
rksinghal
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.