develooper Front page | perl.perl6.internals | Postings from July 2002

Re: [PATCH] usleep, sleep(num)

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
July 15, 2002 08:53
Subject:
Re: [PATCH] usleep, sleep(num)
Message ID:
a05111b01b9589d242435@[63.120.19.221]
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 drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About