Re: signaling a non-realtime thread from a realtime one
Re: signaling a non-realtime thread from a realtime one
- Subject: Re: signaling a non-realtime thread from a realtime one
- From: Joel Reymont <email@hidden>
- Date: Fri, 26 Oct 2012 08:20:26 +0200
I was talking about
#include <semaphore.h>
int sem_trywait(sem_t *sem);
int sem_wait(sem_t *sem);
Thanks, Joel
On Fri, Oct 26, 2012 at 1:25 AM, Shantonu Sen <email@hidden> wrote:
> What POSIX semaphore? Are you talking about PThread condition variables?
>
> You can use the Mach semaphore functions in <mach/semaphore.h>, or better yet dispatch semaphores.
>
> Shantonu
>
> On Oct 25, 2012, at 3:19 PM, Joel Reymont <email@hidden> wrote:
>
>> What is the best way to signal a non-realtime thread from a realtime one?
>>
>> I'm loath to use a POSIX semaphore but maybe I should not be.
>>
>> Thanks in advance, Joel
>>
>> --------------------------------------------------------------------------
>> for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
>> ---------------------+------------+---------------------------------------
>> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
>> ---------------------+------------+---------------------------------------
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
--
--------------------------------------------------------------------------
for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden