Changeset 537 for Tests


Ignore:
Timestamp:
04/09/12 14:17:38 (10 years ago)
Author:
BegemoT
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl/ABQBusyWaitQueue.java

    r499 r537  
    1414public class ABQBusyWaitQueue<T> implements IQueue<T> { 
    1515    private static final boolean USE_TEST_AND_CAS = false; 
     16    private static final boolean USE_YIELD_BACKOFF = false; 
    1617 
    1718    private static final int FREE = 0; 
     
    7879 
    7980    private void backoff( final int turn ) throws InterruptedException { 
    80         Thread.yield(); 
     81        if ( USE_YIELD_BACKOFF ) { 
     82            Thread.yield(); 
     83        } 
    8184 
    8285        /*if ( turn % 10 == 9 ) { 
Note: See TracChangeset for help on using the changeset viewer.