Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

lock.h File Reference

#include <pthread.h>
#include <netdb.h>

Include dependency graph for lock.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define AST_PTHREADT_NULL   (pthread_t) -1
#define AST_PTHREADT_STOP   (pthread_t) -2
#define AST_MUTEX_INIT_VAULE   PTHREAD_MUTEX_INITIALIZER
#define AST_MUTEX_KIND   PTHREAD_MUTEX_RECURSIVE
#define ast_pthread_mutex_init(pmutex, a)   pthread_mutex_init(pmutex,a)
#define ast_mutex_unlock(pmutex)   pthread_mutex_unlock(pmutex)
#define ast_mutex_destroy(pmutex)   pthread_mutex_destroy(pmutex)
#define __AST_MUTEX_DEFINE(scope, mutex)   scope ast_mutex_t mutex = AST_MUTEX_INIT_VAULE
#define ast_mutex_lock(pmutex)   pthread_mutex_lock(pmutex)
#define ast_mutex_trylock(pmutex)   pthread_mutex_trylock(pmutex)
#define AST_MUTEX_DEFINE_STATIC(mutex)   __AST_MUTEX_DEFINE(static,mutex)
#define AST_MUTEX_DEFINE_EXPORTED(mutex)   __AST_MUTEX_DEFINE(/**/,mutex)
#define AST_MUTEX_INITIALIZER   __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__
#define gethostbyname   __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__

Typedefs

typedef pthread_mutex_t ast_mutex_t


Define Documentation

#define __AST_MUTEX_DEFINE scope,
mutex   )     scope ast_mutex_t mutex = AST_MUTEX_INIT_VAULE
 

Definition at line 268 of file lock.h.

#define AST_MUTEX_DEFINE_EXPORTED mutex   )     __AST_MUTEX_DEFINE(/**/,mutex)
 

Definition at line 277 of file lock.h.

#define AST_MUTEX_DEFINE_STATIC mutex   )     __AST_MUTEX_DEFINE(static,mutex)
 

Definition at line 276 of file lock.h.

#define ast_mutex_destroy pmutex   )     pthread_mutex_destroy(pmutex)
 

Definition at line 227 of file lock.h.

Referenced by ast_channel_free().

#define AST_MUTEX_INIT_VAULE   PTHREAD_MUTEX_INITIALIZER
 

Definition at line 207 of file lock.h.

#define AST_MUTEX_INITIALIZER   __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__
 

Definition at line 280 of file lock.h.

#define AST_MUTEX_KIND   PTHREAD_MUTEX_RECURSIVE
 

Definition at line 213 of file lock.h.

#define ast_mutex_lock pmutex   )     pthread_mutex_lock(pmutex)
 

Definition at line 270 of file lock.h.

Referenced by __ast_context_destroy(), ast_activate_generator(), ast_active_channels(), ast_add_extension2(), ast_answer(), ast_async_goto(), ast_autoservice_start(), ast_autoservice_stop(), ast_begin_shutdown(), ast_call(), ast_cdr_post(), ast_cdr_register(), ast_cdr_unregister(), ast_channel_alloc(), ast_channel_free(), ast_channel_make_compatible(), ast_channel_masquerade(), ast_channel_register_ex(), ast_channel_unregister(), ast_channel_walk_locked(), ast_cli_command(), ast_cli_register(), ast_cli_unregister(), ast_context_add_ignorepat2(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_create(), ast_context_find(), ast_context_remove_extension2(), ast_context_remove_ignorepat2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_del(), ast_db_deltree(), ast_db_get(), ast_db_gettree(), ast_db_put(), ast_deactivate_generator(), ast_device_state(), ast_device_state_changed(), ast_do_masquerade(), ast_enum_init(), ast_extension_state_add(), ast_extension_state_del(), ast_format_register(), ast_format_unregister(), ast_frfree(), ast_get_enum(), ast_get_indication_tone(), ast_get_indication_zone(), ast_get_txt(), ast_hangup(), ast_image_register(), ast_image_unregister(), ast_indicate(), ast_load_resource(), ast_loader_register(), ast_loader_unregister(), ast_lock_context(), ast_lock_contexts(), ast_log(), ast_manager_unregister(), ast_merge_contexts_and_delete(), ast_module_reload(), ast_ouraddrfor(), ast_queue_frame(), ast_queue_log(), ast_read(), ast_read_image(), ast_readfile(), ast_register_application(), ast_register_atexit(), ast_register_indication(), ast_register_indication_country(), ast_register_switch(), ast_register_translator(), ast_register_verbose(), ast_request(), ast_rtp_bridge(), ast_sched_add(), ast_sched_del(), ast_sched_runq(), ast_sched_wait(), ast_search_dns(), ast_set_read_format(), ast_set_write_format(), ast_softhangup(), ast_transfer(), ast_translator_best_choice(), ast_unload_resource(), ast_unregister_application(), ast_unregister_atexit(), ast_unregister_indication(), ast_unregister_indication_country(), ast_unregister_switch(), ast_unregister_translator(), ast_unregister_verbose(), ast_update_use_count(), ast_verbose(), ast_verbose_dmesg(), ast_waitfor_nandfds(), ast_write(), ast_writefile(), astman_send_error(), astman_send_response(), manager_event(), pbx_findapp(), reload_logger(), and sched_context_destroy().

#define ast_mutex_trylock pmutex   )     pthread_mutex_trylock(pmutex)
 

Definition at line 271 of file lock.h.

Referenced by ast_channel_masquerade(), ast_module_reload(), and ast_update_module_list().

#define ast_mutex_unlock pmutex   )     pthread_mutex_unlock(pmutex)
 

Definition at line 226 of file lock.h.

Referenced by __ast_context_destroy(), ast_activate_generator(), ast_active_channels(), ast_add_extension2(), ast_answer(), ast_async_goto(), ast_async_goto_by_name(), ast_autoservice_start(), ast_autoservice_stop(), ast_begin_shutdown(), ast_call(), ast_cdr_post(), ast_cdr_register(), ast_cdr_unregister(), ast_channel_alloc(), ast_channel_free(), ast_channel_make_compatible(), ast_channel_masquerade(), ast_channel_register_ex(), ast_channel_unregister(), ast_channel_walk_locked(), ast_cli_command(), ast_cli_register(), ast_cli_unregister(), ast_context_add_ignorepat2(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_create(), ast_context_find(), ast_context_remove_extension2(), ast_context_remove_ignorepat2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_del(), ast_db_deltree(), ast_db_get(), ast_db_gettree(), ast_db_put(), ast_deactivate_generator(), ast_device_state(), ast_device_state_changed(), ast_do_masquerade(), ast_enum_init(), ast_extension_state_add(), ast_extension_state_del(), ast_format_register(), ast_format_unregister(), ast_frfree(), ast_get_channel_by_name_locked(), ast_get_enum(), ast_get_indication_tone(), ast_get_indication_zone(), ast_get_txt(), ast_hangup(), ast_image_register(), ast_image_unregister(), ast_indicate(), ast_load_resource(), ast_loader_register(), ast_loader_unregister(), ast_log(), ast_manager_register2(), ast_manager_unregister(), ast_merge_contexts_and_delete(), ast_module_reload(), ast_ouraddrfor(), ast_parse_device_state(), ast_queue_frame(), ast_queue_log(), ast_read(), ast_read_image(), ast_readfile(), ast_register_application(), ast_register_atexit(), ast_register_indication(), ast_register_indication_country(), ast_register_switch(), ast_register_translator(), ast_register_verbose(), ast_request(), ast_rtp_bridge(), ast_sched_add(), ast_sched_del(), ast_sched_runq(), ast_sched_wait(), ast_search_dns(), ast_set_read_format(), ast_set_write_format(), ast_softhangup(), ast_transfer(), ast_translator_best_choice(), ast_unload_resource(), ast_unlock_context(), ast_unlock_contexts(), ast_unregister_application(), ast_unregister_atexit(), ast_unregister_indication(), ast_unregister_indication_country(), ast_unregister_switch(), ast_unregister_translator(), ast_unregister_verbose(), ast_update_module_list(), ast_update_use_count(), ast_verbose(), ast_verbose_dmesg(), ast_waitfor_nandfds(), ast_write(), ast_writefile(), astman_send_error(), astman_send_response(), manager_event(), pbx_findapp(), reload_logger(), and sched_context_destroy().

#define ast_pthread_mutex_init pmutex,
 )     pthread_mutex_init(pmutex,a)
 

Definition at line 225 of file lock.h.

#define AST_PTHREADT_NULL   (pthread_t) -1
 

Definition at line 20 of file lock.h.

Referenced by ast_autoservice_start(), and ast_autoservice_stop().

#define AST_PTHREADT_STOP   (pthread_t) -2
 

Definition at line 21 of file lock.h.

#define gethostbyname   __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
 

Definition at line 281 of file lock.h.


Typedef Documentation

typedef pthread_mutex_t ast_mutex_t
 

Definition at line 216 of file lock.h.


Generated on Sat Jun 12 16:41:38 2004 for Asterisk by doxygen 1.3.7