- Timestamp:
- 04/09/12 14:17:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl/ABQBusyWaitQueue.java
r499 r537 14 14 public class ABQBusyWaitQueue<T> implements IQueue<T> { 15 15 private static final boolean USE_TEST_AND_CAS = false; 16 private static final boolean USE_YIELD_BACKOFF = false; 16 17 17 18 private static final int FREE = 0; … … 78 79 79 80 private void backoff( final int turn ) throws InterruptedException { 80 Thread.yield(); 81 if ( USE_YIELD_BACKOFF ) { 82 Thread.yield(); 83 } 81 84 82 85 /*if ( turn % 10 == 9 ) {
Note: See TracChangeset
for help on using the changeset viewer.