Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Typedefs | |
typedef struct Semaphore | Semaphore |
Functions | |
Semaphore * | semaphore_create (long n) |
void | semaphore_destroy (Semaphore *semaphore) |
void | semaphore_up (Semaphore *semaphore) |
void | semaphore_down (Semaphore *semaphore) |
long | semaphore_getvalue (Semaphore *semaphore) |
Definition at line 68 of file gw-semaphore.h.
Semaphore* semaphore_create | ( | long | n | ) |
Definition at line 81 of file gw-semaphore.c.
References gwlist_add_producer(), gwlist_create, gwlist_produce(), Semaphore::list, and panic.
Referenced by httpd_emu_create(), init_smsbox(), run_smsbox(), smpp_emu(), smsc_emu_create(), and smsc_http_create().
void semaphore_destroy | ( | Semaphore * | semaphore | ) |
Definition at line 104 of file gw-semaphore.c.
References gwlist_destroy(), Semaphore::list, and panic.
Referenced by conndata_destroy(), httpd_emu_create(), main(), run_smsbox(), smpp_emu(), and smsc_emu_create().
void semaphore_down | ( | Semaphore * | semaphore | ) |
Definition at line 132 of file gw-semaphore.c.
References gw_assert(), gwlist_consume(), and Semaphore::list.
Referenced by boxc_sent_push(), httpd_emu_create(), httpsmsc_sender(), obey_request(), smpp_emu_writer(), and smsc_emu_create().
long semaphore_getvalue | ( | Semaphore * | semaphore | ) |
Definition at line 143 of file gw-semaphore.c.
References gw_assert(), gwlist_len(), Semaphore::list, and panic.
void semaphore_up | ( | Semaphore * | semaphore | ) |
Definition at line 118 of file gw-semaphore.c.
References error(), gw_assert(), gwlist_produce(), and Semaphore::list.
Referenced by boxc_sent_pop(), httpd_emu(), httpsmsc_send_cb(), httpsmsc_sender(), obey_request(), run_smsbox(), smpp_emu(), smpp_emu_handle_pdu(), and url_result_thread().