threads.pl -- Threads

Implements triggers, timers and simultaneous actions.

author
- Piotr Hołownia
license
- GNU General Public License
To be done
- Cancelling triggers and timers by ID.
trigger_create(-ID, +Event, +Action)
Creates trigger. Action will be fired, when Event is true. Action can be both predicate and list of predicates.
timer_create(-ID, +Time, +Action)
Creates timer. Action will be fired after specified Time. Action can be both predicate and list of predicates.
do_simultaneously(+Action)
Creats a thread for each action from Action. Last of them runs in the main thread. Action should be a list of predicates. Although Action can be a signle predicate, it makes no sense.