[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: pthread_delay_np


Could you then tell me how to wait for a specified milli/micro/nano secs
within a thread? I need that for some network simulation. Does
pthread_cond_timedwait() sound like a good idea for that (I could create
a condition that never occurs)? That looks very ugly to me. Is there a
portable way to wait for an approximate time within a thread?


Arun Sharma wrote:
> On Mon, Feb 19, 2001 at 12:16:58AM -0500, vamahadi@xxxxxxxxxxxxxxx wrote:
> > Hi,
> >
> > I get a 'undefined reference to pthread_delay_np' error whenever I
> > compile a code that uses that routine. That doesnt happen for the other
> > pthread routines I use though. Any ideas? I did try google.
> "np" stands for non-portable. Not all implementations of pthreads provide that.
>         -Arun