Re: Having trouble porting an application to MS-Windows



On 6/14/07, Bob McConnell <rvm@xxxxxxxxx> wrote
snip
On the Win32 platform, this form of select is only implemented for
sockets, and alarm() is not implemented at all.
snip

What makes you think the alarm function is not implemented? Running
the following code with the latest version of ActiveState Perl on
Windows XP works.

#!/usr/bin/perl

use strict;
use warnings;

print localtime() . "\n";
eval {
local $SIG{ALRM} = sub { die "timeout\n" };
alarm 3;
while (1) {}
};
print $@ if $@;
print localtime() . "\n";
.



Relevant Pages

  • Re: Impressed / Return:Select, Enter:Adjust
    ... Jim Nagel wrote: ... on the default button (and Shift+Escape an adjust click of the Cancel ... See 6.10 or later!Alarm for an example. ...
    (comp.sys.acorn.misc)
  • Re: RiscPC Timekeeping - Part 2
    ... by RPCInfo, Alarm or Organizer, whenever the DST flag is set, eg by ... AFAIAA all these applications read/write ... I can't find either of these files anywhere in 4.39 Boot. ...
    (comp.sys.acorn.hardware)
  • Re: Saving clock format on RISC OS 6
    ... has no effect on Alarm, which runs as configured in Alarm> Setup. ... you're mistaken and David Pitt is correct. ... It hasn't reverted to using CMOS RAM, ...
    (comp.sys.acorn.apps)
  • Re: Saving clock format on RISC OS 6
    ... to whatever you like - it will make no difference to Alarm. ... I set alarm to a digital display with a user- ... Then, 'to test the obey file', I changed the display back to analogue ...
    (comp.sys.acorn.apps)
  • Re: Alarm display format
    ... boot up but it makes no difference... ... But may I suggest you change from!Alarm ... Otherwise RPCInfo is a neat program, ...
    (comp.sys.acorn.apps)