Package EDU.oswego.cs.dl.util.concurrent
Class Rendezvous.Rotator
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.Rendezvous.Rotator
- All Implemented Interfaces:
Rendezvous.RendezvousFunction
- Enclosing class:
- Rendezvous
The default rendezvous function. Rotates the array
so that each thread returns an item presented by some
other thread (or itself, if parties is 1).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Rotator
public Rotator()
-
-
Method Details
-
rendezvousFunction
Rotate the array- Specified by:
rendezvousFunction
in interfaceRendezvous.RendezvousFunction
-