At 5:24 AM -0500 7/15/02, Steve Purkis wrote: >On Sun, 14 Jul 2002, Dan Sugalski wrote: > >> At 9:36 PM -0500 7/13/02, Steve Purkis wrote: >> >Hi, >> > >> >I was inspired by Time::HiRes to create 2 new simple ops for parrot: >> >usleep(int), and sleep(num), to behave a bit more like the float version >> >of the time op. >> > >> >I've attached a patch made off of the 0.0.6 source tree that works *for >> >Linux* as a proof of concept to try and spark some discussion. >> >> I like this, and want it to go in--I think it's a capability we >> should provide. However... Until it works on Win32 we need to wait. >> Can someone running a Win box grab this and get a win version going? >> When we have that, this can get committed. > >Fair enough - I have no access to a C compiler on Win32 ATM, so I'm afraid >I won't be much use there. I will have a look at getting it working with >Darwin when I have the chance. Don't sweat Darwin--it's got usleep as part of the core stuff, so it's fine. I think anything even remotely resembling a modern Unix is fine (which, oddly enough these days, includes VMS. Don't ask). Win9X and its descendants are what I'm worried about. I think we're likely OK on the NT side of the family. Beats me on the handhelds, though I'd be shocked if they didn't have short sleep capabilities. OTOH, we don't build there. Yet... -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunkThread Previous | Thread Next