Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

spinlock.h: spinlock routines
[platform independant portions of code]


Typedefs

typedef _Spinlock * Spinlock

Functions

ErrorCode spinlockCreate (Spinlock *spin)
ErrorCode spinlockDestroy (Spinlock *spin)
ErrorCode spinlockLock (Spinlock spin, Timeout timeout)
ErrorCode spinlockUnlock (Spinlock spin)

Detailed Description

 *  *  * Defines interfaces for implementing mutual exclusion on multiprocess systems using spinlocks

Typedef Documentation

typedef _Spinlock* Spinlock
 

Definition at line 18 of file spinlock.h.


Function Documentation

ErrorCode spinlockCreate Spinlock spin  ) 
 

Create a spinlock

Parameters:
spin The spinlock to create

ErrorCode spinlockDestroy Spinlock spin  ) 
 

Destroy a spinlock

Parameters:
spin The spinlock to delete

ErrorCode spinlockLock Spinlock  spin,
Timeout  timeout
 

Attempt to lock a spinlock

Parameters:
spin The spinlock to lock
timeout The maximum time to wait to lock the spinlock

ErrorCode spinlockUnlock Spinlock  spin  ) 
 

Unlock a spinlock

Parameters:
spin The spinlock to unlock


Generated on Wed Mar 22 20:36:34 2006 for ndk by  doxygen 1.4.4