#include <pthread.h>
#include <netdb.h>
#include <time.h>
#include <sys/param.h>
#include "asterisk/logger.h"
Include dependency graph for lock.h:
This graph shows which files directly or indirectly include this file:
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 | |
static int | ast_cond_broadcast (ast_cond_t *cond) |
static int | ast_cond_destroy (ast_cond_t *cond) |
static int | ast_cond_init (ast_cond_t *cond, pthread_condattr_t *cond_attr) |
static int | ast_cond_signal (ast_cond_t *cond) |
static int | ast_cond_timedwait (ast_cond_t *cond, ast_mutex_t *t, const struct timespec *abstime) |
static int | ast_cond_wait (ast_cond_t *cond, ast_mutex_t *t) |
static int | ast_mutex_destroy (ast_mutex_t *pmutex) |
static int | ast_mutex_init (ast_mutex_t *pmutex) |
static int | ast_mutex_lock (ast_mutex_t *pmutex) |
static int | ast_mutex_trylock (ast_mutex_t *pmutex) |
static 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 __ast_device_state_changed_literal(), __unload_module(), ast_autoservice_start(), ast_autoservice_stop(), ast_cdr_submit_batch(), autoservice_run(), console_verboser(), do_reload(), load_module(), quit_handler(), restart_monitor(), rpt_master(), and unload_module(). |
|
Definition at line 34 of file lock.h. Referenced by __unload_module(), restart_monitor(), rpt(), rpt_master(), and unload_module(). |
|
Definition at line 664 of file lock.h. Referenced by connect_asterisk(). |
|
Definition at line 655 of file lock.h. Referenced by ast_cond_broadcast(). |
|
Definition at line 653 of file lock.h. Referenced by ast_cond_destroy(). |
|
Definition at line 652 of file lock.h. Referenced by ast_cond_init(). |
|
Definition at line 654 of file lock.h. Referenced by ast_cond_signal(). |
|
|
|
Definition at line 657 of file lock.h. Referenced by ast_cond_timedwait(). |
|
Definition at line 656 of file lock.h. Referenced by ast_cond_wait(). |
|
Definition at line 666 of file lock.h. Referenced by ast_pthread_create_stack(). |
|
Definition at line 650 of file lock.h. Referenced by ast_mutex_destroy(), and dlcompat_cleanup(). |
|
Definition at line 649 of file lock.h. Referenced by ast_mutex_init(), and dlcompat_init_func(). |
|
|
|
Definition at line 646 of file lock.h. Referenced by ast_mutex_lock(), and dolock(). |
|
|
|
Definition at line 648 of file lock.h. Referenced by ast_mutex_trylock(). |
|
Definition at line 647 of file lock.h. Referenced by ast_mutex_unlock(), and dounlock(). |
|
|
|
|
|
Definition at line 623 of file lock.h. References pthread_cond_broadcast. 00624 { 00625 return pthread_cond_broadcast(cond); 00626 }
|
|
Definition at line 628 of file lock.h. References pthread_cond_destroy. Referenced by ast_channel_spy_remove(), do_reload(), and unload_module(). 00629 { 00630 return pthread_cond_destroy(cond); 00631 }
|
|
Definition at line 613 of file lock.h. References pthread_cond_init. Referenced by ast_channel_spy_add(), ast_device_state_engine_init(), do_reload(), and mkbrd(). 00614 { 00615 return pthread_cond_init(cond, cond_attr); 00616 }
|
|
Definition at line 618 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(). 00619 { 00620 return pthread_cond_signal(cond); 00621 }
|
|
Definition at line 638 of file lock.h. References pthread_cond_timedwait. Referenced by ast_channel_spy_trigger_wait(), and do_cdr(). 00639 { 00640 return pthread_cond_timedwait(cond, t, abstime); 00641 }
|
|
Definition at line 633 of file lock.h. References pthread_cond_wait. Referenced by do_devstate_changes(). 00634 { 00635 return pthread_cond_wait(cond, t); 00636 }
|
|
Definition at line 545 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(), launch_monitor_thread(), 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(). 00546 { 00547 return pthread_mutex_destroy(pmutex); 00548 }
|
|
Definition at line 530 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(), launch_monitor_thread(), load_module(), local_alloc(), mkbrd(), mkif(), mkintf(), new_odbc_obj(), oh323_alloc(), rpt_master(), sched_context_create(), and sip_alloc(). 00531 { 00532 pthread_mutexattr_t attr; 00533 pthread_mutexattr_init(&attr); 00534 pthread_mutexattr_settype(&attr, AST_MUTEX_KIND); 00535 return pthread_mutex_init(pmutex, &attr); 00536 }
|
|
|
Definition at line 604 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(). 00605 { 00606 return pthread_mutex_trylock(pmutex); 00607 }
|
|