#include <pthread.h>
#include <netdb.h>
#include <time.h>
#include <sys/param.h>
#include "asterisk/logger.h"
Go to the source code of this file.
Defines | |
#define | __AST_MUTEX_DEFINE(scope, mutex) scope ast_mutex_t mutex = AST_MUTEX_INIT_VALUE |
#define | AST_MUTEX_DEFINE_EXPORTED(mutex) __AST_MUTEX_DEFINE(/**/,mutex) |
#define | AST_MUTEX_DEFINE_STATIC(mutex) __AST_MUTEX_DEFINE(static,mutex) |
#define | AST_MUTEX_INIT_VALUE PTHREAD_MUTEX_INIT_VALUE |
#define | AST_MUTEX_INITIALIZER __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__ |
#define | AST_MUTEX_KIND PTHREAD_MUTEX_RECURSIVE |
#define | ast_pthread_mutex_init(pmutex, a) pthread_mutex_init(pmutex,a) |
#define | AST_PTHREADT_NULL (pthread_t) -1 |
#define | AST_PTHREADT_STOP (pthread_t) -2 |
#define | gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__ |
#define | pthread_cond_broadcast use_ast_cond_broadcast_instead_of_pthread_cond_broadcast |
#define | pthread_cond_destroy use_ast_cond_destroy_instead_of_pthread_cond_destroy |
#define | pthread_cond_init use_ast_cond_init_instead_of_pthread_cond_init |
#define | pthread_cond_signal use_ast_cond_signal_instead_of_pthread_cond_signal |
#define | pthread_cond_t use_ast_cond_t_instead_of_pthread_cond_t |
#define | pthread_cond_timedwait use_ast_cond_wait_instead_of_pthread_cond_timedwait |
#define | pthread_cond_wait use_ast_cond_wait_instead_of_pthread_cond_wait |
#define | pthread_create __use_ast_pthread_create_instead__ |
#define | pthread_mutex_destroy use_ast_mutex_destroy_instead_of_pthread_mutex_destroy |
#define | pthread_mutex_init use_ast_mutex_init_instead_of_pthread_mutex_init |
#define | PTHREAD_MUTEX_INIT_VALUE PTHREAD_MUTEX_INITIALIZER |
#define | pthread_mutex_lock use_ast_mutex_lock_instead_of_pthread_mutex_lock |
#define | pthread_mutex_t use_ast_mutex_t_instead_of_pthread_mutex_t |
#define | pthread_mutex_trylock use_ast_mutex_trylock_instead_of_pthread_mutex_trylock |
#define | pthread_mutex_unlock use_ast_mutex_unlock_instead_of_pthread_mutex_unlock |
Typedefs | |
typedef pthread_cond_t | ast_cond_t |
typedef pthread_mutex_t | ast_mutex_t |
Functions | |
int | ast_cond_broadcast (ast_cond_t *cond) |
int | ast_cond_destroy (ast_cond_t *cond) |
int | ast_cond_init (ast_cond_t *cond, pthread_condattr_t *cond_attr) |
int | ast_cond_signal (ast_cond_t *cond) |
int | ast_cond_timedwait (ast_cond_t *cond, ast_mutex_t *t, const struct timespec *abstime) |
int | ast_cond_wait (ast_cond_t *cond, ast_mutex_t *t) |
int | ast_mutex_destroy (ast_mutex_t *pmutex) |
int | ast_mutex_init (ast_mutex_t *pmutex) |
int | ast_mutex_lock (ast_mutex_t *pmutex) |
int | ast_mutex_trylock (ast_mutex_t *pmutex) |
int | ast_mutex_unlock (ast_mutex_t *pmutex) |
Definition in file lock.h.
|
|
|
|
|
|
|
|
|
|
|
Definition at line 63 of file lock.h. Referenced by ast_mutex_init(). |
|
|
|
Definition at line 33 of file lock.h. Referenced by __unload_module(). |
|
|
|
Definition at line 655 of file lock.h. Referenced by connect_asterisk(). |
|
Definition at line 646 of file lock.h. Referenced by ast_cond_broadcast(). |
|
Definition at line 644 of file lock.h. Referenced by ast_cond_destroy(). |
|
Definition at line 643 of file lock.h. Referenced by ast_cond_init(). |
|
Definition at line 645 of file lock.h. Referenced by ast_cond_signal(). |
|
|
|
Definition at line 648 of file lock.h. Referenced by ast_cond_timedwait(). |
|
Definition at line 647 of file lock.h. Referenced by ast_cond_wait(). |
|
Definition at line 657 of file lock.h. Referenced by ast_pthread_create_stack(). |
|
Definition at line 641 of file lock.h. Referenced by ast_mutex_destroy(), and dlcompat_cleanup(). |
|
Definition at line 640 of file lock.h. Referenced by ast_mutex_init(), and dlcompat_init_func(). |
|
|
|
Definition at line 637 of file lock.h. Referenced by ast_mutex_lock(), and dolock(). |
|
|
|
Definition at line 639 of file lock.h. Referenced by ast_mutex_trylock(). |
|
Definition at line 638 of file lock.h. Referenced by ast_mutex_unlock(), and dounlock(). |
|
|
|
Definition at line 519 of file lock.h. Referenced by send_request(), zap_show_channel(), zap_show_channels(), and zt_request(). |
|
Definition at line 614 of file lock.h. References pthread_cond_broadcast. 00615 { 00616 return pthread_cond_broadcast(cond); 00617 }
|
|
Definition at line 619 of file lock.h. References pthread_cond_destroy. Referenced by ast_channel_spy_remove(), do_reload(), and unload_module(). 00620 { 00621 return pthread_cond_destroy(cond); 00622 }
|
|
Definition at line 604 of file lock.h. References pthread_cond_init. Referenced by ast_channel_spy_add(), ast_device_state_engine_init(), do_reload(), and mkbrd(). 00605 { 00606 return pthread_cond_init(cond, cond_attr); 00607 }
|
|
Definition at line 609 of file lock.h. References pthread_cond_signal. Referenced by __ast_device_state_changed_literal(), ast_channel_spy_stop_by_type(), detach_spies(), monitor_handle_owned(), queue_frame_to_spies(), and submit_unscheduled_batch(). 00610 { 00611 return pthread_cond_signal(cond); 00612 }
|
|
Definition at line 629 of file lock.h. References pthread_cond_timedwait. Referenced by do_cdr(). 00630 { 00631 return pthread_cond_timedwait(cond, t, abstime); 00632 }
|
|
Definition at line 624 of file lock.h. References pthread_cond_wait. Referenced by ast_channel_spy_trigger_wait(), and do_devstate_changes(). 00625 { 00626 return pthread_cond_wait(cond, t); 00627 }
|
|
Definition at line 536 of file lock.h. References pthread_mutex_destroy. Referenced by __ast_context_destroy(), __login_exec(), __oh323_destroy(), __sip_destroy(), agent_cleanup(), agent_hangup(), ast_channel_free(), build_gateway(), channel_spy(), delete_devices(), destroy_endpoint(), destroy_odbc_obj(), destroy_queue(), destroy_session(), destroy_zt_pvt(), features_hangup(), free_session(), local_alloc(), local_hangup(), local_queue_frame(), misdn_cfg_destroy(), mixmonitor_thread(), read_agent_config(), sched_context_destroy(), sip_alloc(), timing_read(), and unload_module(). 00537 { 00538 return pthread_mutex_destroy(pmutex); 00539 }
|
|
Definition at line 521 of file lock.h. References AST_MUTEX_KIND, and pthread_mutex_init. Referenced by accept_thread(), add_agent(), alloc_queue(), ast_channel_alloc(), ast_context_create(), build_device(), build_gateway(), chandup(), channel_spy(), features_alloc(), find_tpeer(), load_module(), local_alloc(), mixmonitor_thread(), mkbrd(), mkif(), mkintf(), new_odbc_obj(), oh323_alloc(), rpt_master(), sched_context_create(), and sip_alloc(). 00522 { 00523 pthread_mutexattr_t attr; 00524 pthread_mutexattr_init(&attr); 00525 pthread_mutexattr_settype(&attr, AST_MUTEX_KIND); 00526 return pthread_mutex_init(pmutex, &attr); 00527 }
|
|
|
Definition at line 595 of file lock.h. References pthread_mutex_trylock. Referenced by agent_new(), ast_channel_masquerade(), ast_module_reload(), ast_queue_hangup(), ast_rtp_bridge(), ast_update_module_list(), auto_congest(), cache_get_callno_locked(), channel_find_locked(), check_bridge(), cleanup_connection(), do_chanreads(), do_monitor(), get_callerid(), get_sip_pvt_byid_locked(), grab_owner(), hangup_connection(), iax2_destroy(), iax2_queue_frame(), local_queue_frame(), lock_both(), mgcp_queue_frame(), mgcp_queue_hangup(), monitor_handle_owned(), oh323_rtp_read(), refresh_list(), retrans_pkt(), setup_rtp_connection(), sipsock_read(), socket_read(), unload_module(), update_state(), usecount(), wakeup_sub(), zap_queue_frame(), zt_bridge(), zt_handle_event(), and zt_unlink(). 00596 { 00597 return pthread_mutex_trylock(pmutex); 00598 }
|
|