The relative timeout in linuxthreads
Marcus Brinkmann
Marcus.Brinkmann@ruhr-uni-bochum.de
Wed Feb 6 16:17:00 GMT 2002
On Wed, Feb 06, 2002 at 04:11:56PM -0800, H . J . Lu wrote:
> On Wed, Feb 06, 2002 at 04:08:43PM -0800, Ulrich Drepper wrote:
> > "H . J . Lu" <hjl@lucon.org> writes:
> >
> > > That is why I asked, how could a thread time out in 30 seconds?
> >
> > clock_nanosleep().
> >
>
> I want to wait on a condition variable and time out in 30 seconds. How
> do I do that?
You spawn a new thread that clock_nanosleep()s 30 seconds and then signals
the condition.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
More information about the Libc-alpha
mailing list