\"\" \"\" \"\"
Go up to Miscellaneous
Go forward to stop: Stopping a Bag
RISC-Linz logo

close: Closing a Bag

b->close()
b->close(n)
      ThreadBag<T> b

Specification: Closes the bag b.

  1. In the first form, no more thread may be added to b.
  2. In the second form, n more threads may be added to b.
Constraints: It is illegal to apply close if b is unbound or if b is bound to an already closed or stopped bag. It is illegal to apply close to n<0.
Author: Wolfgang Schreiner
Last Modification: April 12, 1997