YAP 7.1.0
Concurrent Alarms

This library provides a concurrent signals. More...

Detailed Description

This library provides a concurrent signals.

To use it use: :-use_module(library(c_alarms))


Class Documentation

◆ set_alarm/3

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 %

◆ unset_alarm/1

class unset_alarm/1

unset_alarm(+ID)

% It will unschedule the alarm It will not affect other concurrent alarms %