LOCK: Locking Primitives


Typedefs

typedef INT32 LEVEL_BASE::PIN_LOCK

Enumerations

enum  {
  KEY_USER_MIN = 140,
  KEY_USER_MAX = 190,
  KEY_OS_PARENT_TID = 197,
  KEY_OS_TID = 198,
  KEY_THREADID = 199,
  KEY_LAST = 200
}

Functions

VOID LEVEL_BASE::InitLock (PIN_LOCK *lock)
VOID LEVEL_BASE::GetLock (PIN_LOCK *lock, INT32 val)
INT32 LEVEL_BASE::ReleaseLock (PIN_LOCK *lock)

Detailed Description

Primitives for locking

Typedef Documentation

typedef INT32 LEVEL_BASE::PIN_LOCK
 

Spinlock


Enumeration Type Documentation

anonymous enum
 

Keys to access data in thread local storage


Function Documentation

VOID LEVEL_BASE::GetLock PIN_LOCK lock,
INT32  val
 

Get the lock

Parameters:
val Lock is set to this val. Used for debugging, must be non zero.

VOID LEVEL_BASE::InitLock PIN_LOCK lock  ) 
 

Initialize the lock as free

INT32 LEVEL_BASE::ReleaseLock PIN_LOCK lock  ) 
 

Release the lock

Returns:
previous value of lock. Used for debugging.


Generated on Tue Jan 16 00:09:08 2007 for Pin by  doxygen 1.4.6