Mailing Lists: Apple Mailing Lists

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

Re: interprocess communication



pthread_cond_signal() leaves the object nonsignaled like PulseEvent()
in Win32. Is there any POSIX or Mac function which leaves the object
signaled like SetEvent() in Win32? Counting semaphore will not fit in
my case.

On Sat, Nov 22, 2008 at 5:00 AM, Terry Lambert <email@hidden> wrote:
> man pthread_cond_wait
> man pthread_cond_signal
> man pthread_cond_broadcast
>
> -- Terry
>
> On Nov 20, 2008, at 9:31 PM, Rakesh Singhal wrote:
>>
>> 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 <email@hidden> 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >interprocess communication (From: "Rakesh Singhal" <email@hidden>)
 >Re: interprocess communication (From: Jean-Daniel Dupas <email@hidden>)
 >Re: interprocess communication (From: Terry Lambert <email@hidden>)
 >Re: interprocess communication (From: "Rakesh Singhal" <email@hidden>)
 >Re: interprocess communication (From: Terry Lambert <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.