Node: Alarm Intrinsic, Next: All Intrinsic, Previous: AInt Intrinsic, Up: Table of Intrinsic Functions
CALL Alarm(Seconds, Handler, Status)
Seconds: INTEGER
; scalar; INTENT(IN).
Handler: Signal handler (INTEGER FUNCTION
or SUBROUTINE
)
or dummy/global INTEGER(KIND=1)
scalar.
Status: INTEGER(KIND=1)
; OPTIONAL; scalar; INTENT(OUT).
Intrinsic groups: unix
.
Description:
Causes external subroutine Handler to be executed after a delay of
Seconds seconds by using alarm(1)
to set up a signal and
signal(2)
to catch it.
If Status is supplied, it will be
returned with the number of seconds remaining until any previously
scheduled alarm was due to be delivered, or zero if there was no
previously scheduled alarm.
See Signal Intrinsic (subroutine).