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

lock.h File Reference

#include <pthread.h>

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_INITIALIZER   PTHREAD_MUTEX_INITIALIZER
#define AST_MUTEX_KIND   PTHREAD_NORMAL
#define ast_mutex_lock(t)   pthread_mutex_lock(t)
#define ast_mutex_unlock(t)   pthread_mutex_unlock(t)
#define ast_mutex_trylock(t)   pthread_mutex_trylock(t)
#define ast_mutex_init(t)   pthread_mutex_init(t, NULL)
#define ast_pthread_mutex_init(t, a)   pthread_mutex_init(t,a)
#define ast_mutex_destroy(t)   pthread_mutex_destroy(t)

Typedefs

typedef pthread_mutex_t ast_mutex_t


Define Documentation

#define ast_mutex_destroy  )     pthread_mutex_destroy(t)
 

Definition at line 183 of file lock.h.

Referenced by ast_channel_free().

#define ast_mutex_init  )     pthread_mutex_init(t, NULL)
 

Definition at line 181 of file lock.h.

Referenced by ast_channel_alloc(), and sched_context_create().

#define AST_MUTEX_INITIALIZER   PTHREAD_MUTEX_INITIALIZER
 

Definition at line 169 of file lock.h.

#define AST_MUTEX_KIND   PTHREAD_NORMAL
 

Definition at line 173 of file lock.h.

#define ast_mutex_lock  )     pthread_mutex_lock(t)
 

Definition at line 178 of file lock.h.

Referenced by ast_active_channels(), ast_answer(), 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_register_ex(), ast_channel_unregister(), ast_channel_walk(), ast_cli_command(), ast_cli_register(), ast_cli_unregister(), ast_context_find(), ast_context_remove_extension2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_del(), ast_db_deltree(), ast_db_get(), ast_db_gettree(), ast_db_put(), ast_device_state(), ast_device_state_changed(), 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_hangup(), ast_image_register(), ast_image_unregister(), ast_indicate(), ast_load_resource(), ast_loader_register(), ast_loader_unregister(), ast_log(), ast_manager_register(), ast_manager_unregister(), ast_module_reload(), ast_ouraddrfor(), ast_queue_frame(), 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_softhangup(), ast_transfer(), ast_translator_best_choice(), ast_unload_resource(), 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  )     pthread_mutex_trylock(t)
 

Definition at line 180 of file lock.h.

Referenced by ast_module_reload(), and ast_update_module_list().

#define ast_mutex_unlock  )     pthread_mutex_unlock(t)
 

Definition at line 179 of file lock.h.

Referenced by ast_active_channels(), ast_answer(), 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_register_ex(), ast_channel_unregister(), ast_channel_walk(), ast_cli_command(), ast_cli_register(), ast_cli_unregister(), ast_context_add_ignorepat2(), ast_context_find(), ast_context_remove_extension2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_del(), ast_db_deltree(), ast_db_get(), ast_db_gettree(), ast_db_put(), ast_device_state(), ast_device_state_changed(), 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_hangup(), ast_image_register(), ast_image_unregister(), ast_indicate(), ast_load_resource(), ast_loader_register(), ast_loader_unregister(), ast_log(), ast_manager_register(), ast_manager_unregister(), ast_module_reload(), ast_ouraddrfor(), ast_queue_frame(), 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_softhangup(), ast_transfer(), ast_translator_best_choice(), ast_unload_resource(), 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 t,
 )     pthread_mutex_init(t,a)
 

Definition at line 182 of file lock.h.

#define AST_PTHREADT_NULL   (pthread_t) -1
 

Definition at line 19 of file lock.h.

Referenced by ast_autoservice_start(), and ast_autoservice_stop().

#define AST_PTHREADT_STOP   (pthread_t) -2
 

Definition at line 20 of file lock.h.


Typedef Documentation

typedef pthread_mutex_t ast_mutex_t
 

Definition at line 176 of file lock.h.


Generated on Sun Apr 18 23:34:07 2004 for Asterisk by doxygen 1.3.6-20040222