Date: Sun, 21 Mar 2010 11:59:28 -0400 From: Pierre-Luc Drouin <pldrouin@pldrouin.net> To: freebsd-threads@freebsd.org Subject: Portable Conditional Wait for Inter-Process? Message-ID: <4BA64260.5000009@pldrouin.net>
next in thread | raw e-mail | index | archive | help
Hi, I am looking for a portable solution to put a process into a timed wait (a la pthread_cond_timedwait) such that it can be waken up by another process using something similar to pthread_cond_broadcast (there might be many waiters). I guess shared pthread condition variables are not supported by FreeBSD, right? Is there a portable way to do this? The only solution I can think of right now is to use alarm and sigwait on the waiters side and kill(wpid,SIGCONT) on the other side with a list of pids. Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA64260.5000009>