[ ECLiPSe Control built-in.|Group Index| Full Index]

schedule_suspensions(+Trigger)

Take the suspension list associated with the symbolic trigger Trigger and schedule them for execution.

+Trigger
An atom.

Description

Suspensions in ECLiPSe go through several stages: They are created, attached to one or more variables, later scheduled for execution, and finally executed.

The task of schedule_suspensions/1 is to take suspensions from the global suspension list associated to the symbolic name Trigger, and schedule them for execution. The suspensions are inserted into a global priority list, according to their individual priority. A subsequent wake/0 will then actually execute them.

If no suspensions are associated to Trigger, schedule_suspensions/1 just succeeds and does nothing.

Fail Conditions

None.

Resatisfiable

No.

Exceptions

Examples


[eclipse 1]: suspend(writeln(world), 2, trigger(hello)),
        schedule_suspensions(hello), wake.  
world
yes.



See Also

demon / 1, insert_suspension / 3, insert_suspension / 4, make_suspension / 3, suspension_to_goal / 3, attach_suspensions / 2, wake / 0