This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The relative timeout in linuxthreads


On Thu, Feb 07, 2002 at 01:13:58AM +0100, Marcus Brinkmann wrote:
> 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.
> 

That is not what I want.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]