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

Andy Wingo wingo at pobox.com
Sun Apr 24 23:42:52 UTC 2005


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/




More information about the Linux-audio-dev mailing list