LOCK: Locking Primitives


Typedefs

typedef INT32 LEVEL_BASE::PIN_LOCK

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

Availability:
Mode: JIT
O/S: Linux & Windows
CPU: All

Typedef Documentation

typedef INT32 LEVEL_BASE::PIN_LOCK
 

Spinlock


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 Thu May 15 03:23:39 2008 for Pin by  doxygen 1.4.6