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

fastlock.h File Reference

#include "sched_yield.h"

Go to the source code of this file.

Defines

#define SPIN_OPTIMIZE
#define init_lock(l)   (l)=0

Typedefs

typedef volatile int fl_lock_t

Functions

int tsl (fl_lock_t *lock)
void get_lock (fl_lock_t *lock)
int try_lock (fl_lock_t *lock)
void release_lock (fl_lock_t *lock)


Define Documentation

#define init_lock  )     (l)=0
 

Definition at line 78 of file fastlock.h.

Referenced by main().

#define SPIN_OPTIMIZE
 

Definition at line 69 of file fastlock.h.


Typedef Documentation

typedef volatile int fl_lock_t
 

Definition at line 74 of file fastlock.h.

Referenced by main().


Function Documentation

void get_lock fl_lock_t lock  )  [inline, static]
 

Definition at line 297 of file fastlock.h.

References lock, sched_yield, and tsl().

Referenced by main().

void release_lock fl_lock_t lock  )  [inline, static]
 

Definition at line 330 of file fastlock.h.

int try_lock fl_lock_t lock  )  [inline, static]
 

Definition at line 319 of file fastlock.h.

References lock, and tsl().

Referenced by main().

int tsl fl_lock_t lock  )  [inline, static]
 

Definition at line 151 of file fastlock.h.


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1