org.mentaqueue.wait
Interface WaitStrategy

All Known Implementing Classes:
ParkWaitStrategy, SpinParkWaitStrategy, SpinWaitStrategy, SpinYieldParkWaitStrategy, YieldParkWaitStrategy

public interface WaitStrategy

Describes a wait strategy.

Author:
Sergio Oliveira Jr.

Method Summary
 void reset()
          Reset the strategy because we have waited and we have accomplished what we were waiting for.
 void waitForOtherThread()
          Do something to wait: busy spinning, yield or sleep.
 

Method Detail

waitForOtherThread

void waitForOtherThread()
Do something to wait: busy spinning, yield or sleep.


reset

void reset()
Reset the strategy because we have waited and we have accomplished what we were waiting for.



Copyright © 2012. All Rights Reserved.