Z3
Public Member Functions | Protected Member Functions | Protected Attributes
IDecRefQueue Class Referenceabstract
+ Inheritance diagram for IDecRefQueue:

Public Member Functions

void setLimit (int l)
 

Protected Member Functions

 IDecRefQueue ()
 
 IDecRefQueue (int move_limit)
 
abstract void incRef (Context ctx, long obj)
 
abstract void decRef (Context ctx, long obj)
 
void incAndClear (Context ctx, long o)
 
void add (long o)
 
void clear (Context ctx)
 

Protected Attributes

Object m_lock = new Object()
 
LinkedList< Long > m_queue = new LinkedList<Long>()
 
int m_move_limit
 

Detailed Description

Definition at line 22 of file IDecRefQueue.java.

Constructor & Destructor Documentation

IDecRefQueue ( )
inlineprotected

Definition at line 28 of file IDecRefQueue.java.

29  {
30  m_move_limit = 1024;
31  }
IDecRefQueue ( int  move_limit)
inlineprotected

Definition at line 33 of file IDecRefQueue.java.

34  {
35  m_move_limit = move_limit;
36  }

Member Function Documentation

void add ( long  o)
inlineprotected
void clear ( Context  ctx)
inlineprotected

Definition at line 62 of file IDecRefQueue.java.

Referenced by IDecRefQueue.incAndClear().

63  {
64  synchronized (m_lock)
65  {
66  for (Long o : m_queue)
67  decRef(ctx, o);
68  m_queue.clear();
69  }
70  }
LinkedList< Long > m_queue
abstract void decRef(Context ctx, long obj)
abstract void decRef ( Context  ctx,
long  obj 
)
abstractprotected
void incAndClear ( Context  ctx,
long  o 
)
inlineprotected
abstract void incRef ( Context  ctx,
long  obj 
)
abstractprotected
void setLimit ( int  l)
inline

Definition at line 38 of file IDecRefQueue.java.

Field Documentation

Object m_lock = new Object()
protected

Definition at line 24 of file IDecRefQueue.java.

Referenced by IDecRefQueue.add(), and IDecRefQueue.clear().

int m_move_limit
protected

Definition at line 26 of file IDecRefQueue.java.

Referenced by IDecRefQueue.incAndClear().

LinkedList<Long> m_queue = new LinkedList<Long>()
protected

Definition at line 25 of file IDecRefQueue.java.