Go to the source code of this file.
Data Structures | |
| struct | s_cf_mutex |
| struct | s_cf_rwlock |
Defines | |
| #define | CF_LM(mutex) cf_lock_mutex(__FILE__,__LINE__,(mutex)) |
| #define | CF_UM(mutex) cf_unlock_mutex(__FILE__,__LINE__,(mutex)) |
| #define | CF_RW_RD(rwlock) cf_rwlock_rdlock(__FILE__,__LINE__,(rwlock)) |
| #define | CF_RW_WR(rwlock) cf_rwlock_wrlock(__FILE__,__LINE__,(rwlock)) |
| #define | CF_RW_UN(rwlock) cf_rwlock_unlock(__FILE__,__LINE__,(rwlock)) |
Typedefs | |
| typedef s_cf_mutex | t_cf_mutex |
| typedef s_cf_rwlock | t_cf_rwlock |
Functions | |
| void | cf_mutex_init (const u_char *name, t_cf_mutex *mutex) |
| void | cf_mutex_destroy (t_cf_mutex *mutex) |
| void | cf_rwlock_init (const u_char *name, t_cf_rwlock *rwlock) |
| void | cf_rwlock_destroy (t_cf_rwlock *rwlock) |
| void | cf_lock_mutex (const u_char *file, const int line, t_cf_mutex *mutex) |
| void | cf_unlock_mutex (const u_char *file, const int line, t_cf_mutex *mutex) |
| void | cf_rwlock_rdlock (const u_char *file, const int line, t_cf_rwlock *rwlock) |
| void | cf_rwlock_wrlock (const u_char *file, const int line, t_cf_rwlock *rwlock) |
| void | cf_rwlock_unlock (const u_char *file, const int line, t_cf_rwlock *rwlock) |
Definition in file cf_pthread.h.
|
|
Lock a mutex Definition at line 22 of file cf_pthread.h. |
|
|
Lock a rwlock shared Definition at line 25 of file cf_pthread.h. |
|
|
Unlock a rwlock Definition at line 27 of file cf_pthread.h. |
|
|
Lock a rwlock writable Definition at line 26 of file cf_pthread.h. |
|
|
Unlock a mutex Definition at line 23 of file cf_pthread.h. |
|
|
This struct is used to store a mutex and it's name |
|
|
This struct is used to store a rwlock and it's name |
|
||||||||||||||||
|
This function locks a mutex
Definition at line 58 of file cf_pthread.c. |
|
|
The destructor for the t_cf_mutex class Definition at line 44 of file cf_pthread.c. |
|
||||||||||||
|
Initialization function for the t_cf_mutex
Definition at line 40 of file cf_pthread.c. |
|
|
This function is the destructor for the read-write lock class
Definition at line 53 of file cf_pthread.c. |
|
||||||||||||
|
This function initializes a rwlock
Definition at line 49 of file cf_pthread.c. |
|
||||||||||||||||
|
This function locks a rwlock shared
Definition at line 125 of file cf_pthread.c. |
|
||||||||||||||||
|
This function unlocks a read-write lock
Definition at line 191 of file cf_pthread.c. |
|
||||||||||||||||
|
This function locks a read-write lock writable
Definition at line 158 of file cf_pthread.c. |
|
||||||||||||||||
|
This function unlocks a mutex
Definition at line 92 of file cf_pthread.c. |
1.3.5