[ Advanced Control and Suspensions | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
attach_suspensions(+Trigger, +Susps)
Insert the suspensions Susps into the suspension list of the symbolic
trigger Trigger.
- ?Trigger
- An atom.
- +Susps
- A suspension or list of suspensions.
Description
This predicate is used to insert one or more suspensions into a
suspension list which is associated to the symbolic name Trigger.
This name can be an arbitrary atom.
The suspensions will be woken by a corresponding invocation of
schedule_suspensions/1.
Fail Conditions
None.
Resatisfiable
No.
Exceptions
- (4) instantiation fault
- Susps or Trigger is not instantiated.
- (5) type error
- Susps is not a suspension or list.
- (5) type error
- Trigger is not an atom.
Examples
See Also
insert_suspension / 4, make_suspension / 3, suspend / 3, suspend / 4, schedule_suspensions / 1, demon / 1