\"\" \"\" \"\"
Go backward to close: Closing a Bag
Go up to Miscellaneous
RISC-Linz logo

stop: Stopping a Bag

b->stop()
      ThreadBag<T> b

Specification: Stops the bag b i.e. ensures that the bag is not accessed any more.

Constraints: It is illegal to apply close if b is unbound or if b is bound to an already stopped bag. It is illegal to apply any operation to a closed b.

Implementation: All threads in the bag that have not yet completed execution are stopped.


Author: Wolfgang Schreiner
Last Modification: April 12, 1997