s5490569 at inf.tu-dresden.de
Wed Sep 12 12:40:00 CEST 2007
On 12.09.2007, at 04:43, huang wrote:
> hi,dear all:
> I have a question about l4_ipc_sleep()! I want to make a stop
> between two
> ipc operation, so i used l4_ipc_sleep(), but it did not work!
> The code is :
> static void sleep(unsigned exp)
> int main(int argc, char **argv)
> return 0;
> I think sleep(4) should make a stop about 4 seconds, but the the call
> returned immediately. What's the problem in my code?
Just of the top of my head: the value you have to submit is in
milliseconds not seconds. So if you want to sleep for 4 seconds you
have to set your timeout to 4000. Another question: Why not using
l4_sleep(4000)? It's part of l4_util and should do the job for you.
> thanks for your help!
> best wishes!
> learnl4 at sina.com
> l4-hackers mailing list
> l4-hackers at os.inf.tu-dresden.de
More information about the l4-hackers