Re: interprocess communication
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IlaBIkS93JOwA1La65xB1aGOlF3hKypOgUiFv705Z/k=; b=qo0HWnDJDJSe+3TPLolnFbSEEsIOfqVY8CwLvakT1HrmJyPtIBbT/JdDFtIW8rmytY jhgB+OS2tI7+S1PcmLVBRnUDTR+9PDwNCiHZr5w0rVsLcbeZ696BX1c+qJgv9VyJPssa wz1opqNfUQixK56EkbiIi6ONoXvqKh7UnVSeU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=j6JOAvz0rLVeRjTgV25K+ya48ZkOaY5ir1orcFrdgb8OWnTWsE9NfrRfO2DefGPW3G R7FvBGXAysOF0Cp3tZLEf0aupcxj2gGeptDQVfRGu4RFA6mTyJKEYESSCRcDn0Vq3cRW 1yyBXHpo/nGK78mfGGj/tSGJVNvk8zRnPOmyM= Yes, but I do not need counting semaphore. Binary semaphore fits in my case. I am looking for it to understand and then implement. Regards On Fri, Nov 21, 2008 at 2:05 AM, Terry Lambert <tlambert@apple.com> wrote:
On Nov 20, 2008, at 4:07 AM, Jean-Daniel Dupas wrote:
Le 20 nov. 08 à 12:30, Rakesh Singhal a écrit :
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.
You are describing a condition variable, which is a simplified case of a counting semaphore. Google either of these.
-- Terry
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rakesh Singhal