Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileTalarm()Pause()Psignal()Tmalarm() GEMDOSSyntaxLONG Tmalarm( time )
LONG time;
Function Tmalarm() reads/sets a process alarm for the current process.
Opcode 317 (0x013d)
Availability Available when a 'MiNT' cookie with a version of at least 1.10
exists.
Parametres time specifies the length of time (in milliseconds)
to wait before a SIGALRM signal is delivered. If time is 0
then any previously set alarm is cancelled. If time is
negative the function does not modify any alarm currently
set.
Binding move.l time,-(sp)
move.w #$013d,-(sp)
trap #1
addq.l #6,sp
Return Value Tmalarm() returns 0 if no alarm was scheduled prior to this
call or the amount of time remaining (in milliseconds)
before the alarm is triggered.
Comments If no SIGALRM signal handler has been set up when the alarm
is triggered, the process will be killed.
See Also Talarm(), Pause(), Psignal()