|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <unistd.h>#include "gwlib/gwlib.h"Go to the source code of this file.
Functions | |
| Mutex * | mutex_create_real (void) |
| Mutex * | mutex_init_static_real (Mutex *mutex) |
| void | mutex_destroy (Mutex *mutex) |
| void | mutex_lock_real (Mutex *mutex, char *file, int line, const char *func) |
| int | mutex_unlock_real (Mutex *mutex, char *file, int line, const char *func) |
| int | mutex_trylock_real (Mutex *mutex, const char *file, int line, const char *func) |
| Mutex* mutex_create_real | ( | void | ) |
Definition at line 78 of file thread.c.
References Mutex::dynamic, Mutex::mutex, mutex, and Mutex::owner.
| void mutex_destroy | ( | Mutex * | mutex | ) |
Definition at line 97 of file thread.c.
References Mutex::dynamic, info(), Mutex::mutex, mutex, and panic.
Referenced by bearerbox_address_destroy(), client_shutdown(), concat_handling_cleanup(), conn_destroy(), conn_pool_shutdown(), counter_destroy(), dict_destroy(), gw_check_shutdown(), gw_prioqueue_destroy(), gw_timerset_destroy(), gw_timerset_elapsed_destroy(), gwlib_protected_shutdown(), gwlist_destroy(), main(), octstr_shutdown(), port_shutdown(), proxy_shutdown(), radius_acct_shutdown(), server_shutdown(), smscconn_destroy(), smscenter_destruct(), smscwrapper_destroy(), store_dumper(), and timers_shutdown().
Definition at line 89 of file thread.c.
References Mutex::dynamic, Mutex::mutex, mutex, and Mutex::owner.
| void mutex_lock_real | ( | Mutex * | mutex, |
| char * | file, | ||
| int | line, | ||
| const char * | func | ||
| ) |
Definition at line 121 of file thread.c.
References file, gw_assert(), gwthread_self(), Mutex::mutex, mutex, Mutex::owner, and panic.
| int mutex_trylock_real | ( | Mutex * | mutex, |
| const char * | file, | ||
| int | line, | ||
| const char * | func | ||
| ) |
Definition at line 165 of file thread.c.
References error(), file, gwthread_self(), Mutex::mutex, mutex, Mutex::owner, and panic.
| int mutex_unlock_real | ( | Mutex * | mutex, |
| char * | file, | ||
| int | line, | ||
| const char * | func | ||
| ) |
Definition at line 146 of file thread.c.
References error(), file, gw_assert(), Mutex::mutex, mutex, Mutex::owner, and panic.