digitalmars.D.learn - wait? sleep?
- Ant (4/4) Jan 07 2007 How do we wait or sleep for a specific amount of time in a thread?
- Tom S (2/9) Jan 07 2007 Afaics, msleep from std.c.time will do the trick
- Ant (7/17) Jan 07 2007 Thank you that's it.
- Sean Kelly (3/7) Jan 07 2007 It's never been there, as far as I know.
How do we wait or sleep for a specific amount of time in a thread? say 527 milliseconds? we use to have a static sleep on the std.thread didn't we? Ant
Jan 07 2007
Ant wrote:How do we wait or sleep for a specific amount of time in a thread? say 527 milliseconds? we use to have a static sleep on the std.thread didn't we? AntAfaics, msleep from std.c.time will do the trick
Jan 07 2007
Tom S wrote:Ant wrote:Thank you that's it. my system (linux ubuntu 6.10) didn't find msleep but is good for usleep. Sean, probably I remember sleep from std.c.time and looking for it on thread (should have grep phobos source tree...) thanks, AntHow do we wait or sleep for a specific amount of time in a thread? say 527 milliseconds? we use to have a static sleep on the std.thread didn't we? AntAfaics, msleep from std.c.time will do the trick
Jan 07 2007
Ant wrote:How do we wait or sleep for a specific amount of time in a thread? say 527 milliseconds? we use to have a static sleep on the std.thread didn't we?It's never been there, as far as I know. Sean
Jan 07 2007