Re: [linux-audio-dev] non-RT thread waiting for RT thread

From: Andy Wingo <wingo@email-addr-hidden>
Date: Mon Apr 25 2005 - 02:42:52 EEST

Hi Ken,

On Sun, 2005-04-24 at 15:59 -0700, Ken McMillan wrote:
> I need to make a low priority
> (non-real time) thread wait for a real time thread to
> do something.

socketpair(2) will do, either polling or reading in the low priority
thread will sleep until the high priority thread writes a byte.

> I want my app to port to windows
> and mac

Dunno how portable it is, the linux man page suggests it's a more recent
part of POSIX.

Regards,

-- 
Andy Wingo
http://wingolog.org/
Received on Mon Apr 25 04:15:15 2005

This archive was generated by hypermail 2.1.8 : Mon Apr 25 2005 - 04:15:16 EEST