Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Protected Member Functions | Protected Attributes
IDecRefQueue Class Reference
+ Inheritance diagram for IDecRefQueue:

Protected Member Functions

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>()
final int m_move_limit = 1024

Detailed Description

Definition at line 22 of file IDecRefQueue.java.


Member Function Documentation

void add ( long  o) [inline, protected]
void clear ( Context  ctx) [inline, protected]

Definition at line 50 of file IDecRefQueue.java.

Referenced by Context.dispose(), and IDecRefQueue.incAndClear().

        {
                synchronized (m_lock)
                {
                        for (Long o : m_queue)
                                decRef(ctx, o);
                        m_queue.clear();
                }
        }
abstract void decRef ( Context  ctx,
long  obj 
) [protected, pure virtual]
void incAndClear ( Context  ctx,
long  o 
) [inline, protected]
abstract void incRef ( Context  ctx,
long  obj 
) [protected, pure virtual]

Field Documentation

Object m_lock = new Object() [protected]

Definition at line 24 of file IDecRefQueue.java.

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

final int m_move_limit = 1024 [protected]

Definition at line 26 of file IDecRefQueue.java.

Referenced by IDecRefQueue.incAndClear().

LinkedList<Long> m_queue = new LinkedList<Long>() [protected]
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines