LONG Tmalarm( time )
LONG time;
| 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. |
| Parameters | 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. |
| Caveats | This call was originally described as Talarm() in the Atari Compendium. |
| 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() |