[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: nanosleep



Hi,

Are you trying to call nanosleep from a userspace 
application? nanosleep is only available from kernel
space. How long do you need to sleep? The precision 
is rather bad for really short sleeps (the function
calls may take more time than the requested sleep
period).

/Mikael

-----Original Message-----
From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
Behalf Of Marko Kurtto
Sent: den 12 juli 2002 07:53
To: dev-etrax@xxxxxxx.com
Subject: nanosleep


Hi!
I have problems using nanosleep(). When I compile I get an error message
saying that this function has not been  
defined. I have included <time.h>. When I only use the structure
timespec, i.e instantiating a variable, compilator don't complain.
What do I do wrong?