>> I want alarm() under Win32 so badly, I can taste it.

I hate to say it, but you're looking at it the wrong way.

Win32 doesn't do "pre-emptive notifications" between threads
   (you have to look and see if you've been notified)
=> Therefore it doesn't support signal()
=> Therefore it doesn't support alarm()

If there was a way of faking it under Win32, then you'd have alarm() emulated
already.

Welcome to the sorry world of VMS, sorry NT....

Try looking at your problem a different way (eg where you'd have a main process
and interrupt it with an alarm(), instead spawn a worker thread which you ignore
as failed if it fails to return after a certain period of time).

I know it's not how Unix works, and I personally prefer Unix too, but try to
work with the strengths of the operating system, rather than its weaknesses
(that's a corruption of a Larry Wall quote BTW).

Regards

Tim





_________________________________________________________________________
                                                                      
The information contained in this message is intended for the addressee
only and may contain confidential and/or privileged information.
If you are not the addressee, please delete this message and notify the
sender; you should not copy or distribute this message or disclose its
contents to anyone.
Any views or opinions expressed in this message are those of the author
and do not necessarily represent those of WestLB or any of its affiliates.
No reliance may be placed on this message without written confirmation
from an authorised representative of its contents.

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to