org.amino.ds.lockfree
Class LockFreeList.ListStateHolder<E>

java.lang.Object
  extended by org.amino.ds.lockfree.LockFreeList.ListStateHolder<E>
Type Parameters:
E - type of element on node
Enclosing class:
LockFreeList<E>

protected static class LockFreeList.ListStateHolder<E>
extends java.lang.Object

hold state between two function calls. It take place of thread local variable because the performance of ThreadLocal is not good. ListStateHolder is also used by LockFreeOrderedList so it is protected.


Constructor Summary
LockFreeList.ListStateHolder()
           
 
Method Summary
 void casPrev()
           
 boolean markRemoved()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockFreeList.ListStateHolder

public LockFreeList.ListStateHolder()
Method Detail

casPrev

public void casPrev()

markRemoved

public boolean markRemoved()


Copyright © 2008. All Rights Reserved.