On Tue, 23 Jul 2002, Aldo Calpini wrote:

> Dan Sugalski wrote:
> > 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.
> 
> I'm a little late on this ;-)

So was I - should've done it months ago ;-)


> there's nothing special to do on Win32. the current Parrot_sleep
> implementation on this platform is:
> 
>   Sleep(seconds * 1000);
> 
> so to get a millisecond sleep just remove the * 1000 part.
> it works on any Windows from 95 up.

Yeah - I've had a look at this and came to a similar conclusion...
but from the other end, just to be different :) -- unfortunately MS'
Sleep() doesn't give you to-the-microsecond control, but i figure * 1000
to get milliseconds is close enough (if the coder needs better control 
maybe that will come with parrot's threading support?  ie, something like
java's wait() method?)

Anyways, the idea is to leave Parrot_sleep() as is, and introduce
Parrot_usleep() to all other platforms, fudging it a bit on Win32.



> I don't have time now to patch Steve's patch, if nobody else
> can do it, I'll do it next week.

I've actually got my hands on MSVC++ and will work on it later on today.
I'll post the patch once I'm done.


Also, ta for the replies, guys... this kind of atmosphere makes working
on Parrot appealing to newbies like me :)

+--
 Steve Purkis <[EMAIL PROTECTED]>

Reply via email to