Go up to Miscellaneous
Go forward to stop: Stopping a Bag

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.
Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Up Next