Re: Having trouble porting an application to MS-Windows



On 6/15/07, Bob McConnell <rvm@xxxxxxxxx> wrote:
snip
eval {
local $SIG{ALRM} = sub { die "alarm\n" }; # NB:
\n required
alarm $timeout;
$nread = sysread PORT, $line, 1;
alarm 0;
};
snip
This transmits the packet, but never comes out of the eval() if it
doesn't receive a character. Is there anything obvious that I missed?
snip

Hmm, that codes looks right. Do the two scripts I sent earlier work?

Even if this does work, can I set simultaneous alarms in multiple
threads?

Yes, I sent an example that worked for me with ActiveState's latest
version on WinXP.
.



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)