![]() |
YAP 7.1.0
|
This library provides a concurrent signals. More...
This library provides a concurrent signals.
To use it use: :-use_module(library(c_alarms))
class set_alarm/3 |
set_alarm(+Seconds, +Execute, -ID)
% calls Executes after a time interval of Seconds ID is returned to be able to unset the alarm (the call will not be executed) set_alarm/3 supports multiple & nested settings of alarms Known Bug: There is the case that an alarm might trigger +-1 second of the set time %
class unset_alarm/1 |
unset_alarm(+ID)
% It will unschedule the alarm It will not affect other concurrent alarms %