lock.h File Reference

#include <pthread.h>
#include <netdb.h>
#include <time.h>
#include <sys/param.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_PTHREADT_NULL   (pthread_t) -1
#define AST_PTHREADT_STOP   (pthread_t) -2
#define PTHREAD_MUTEX_INIT_VALUE   PTHREAD_MUTEX_INITIALIZER
#define AST_MUTEX_KIND   PTHREAD_MUTEX_RECURSIVE
#define AST_MUTEX_INIT_VALUE   PTHREAD_MUTEX_INIT_VALUE
#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_VALUE
#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__
#define pthread_create   __use_ast_pthread_create_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_VALUE

Definition at line 348 of file lock.h.

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

Definition at line 357 of file lock.h.

#define AST_MUTEX_DEFINE_STATIC ( mutex   )     __AST_MUTEX_DEFINE(static,mutex)

Definition at line 356 of file lock.h.

#define ast_mutex_destroy ( pmutex   )     pthread_mutex_destroy(pmutex)

Definition at line 307 of file lock.h.

#define AST_MUTEX_INIT_VALUE   PTHREAD_MUTEX_INIT_VALUE

Definition at line 293 of file lock.h.

#define AST_MUTEX_INITIALIZER   __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__

Definition at line 359 of file lock.h.

#define AST_MUTEX_KIND   PTHREAD_MUTEX_RECURSIVE

Definition at line 48 of file lock.h.

#define ast_mutex_lock ( pmutex   )     pthread_mutex_lock(pmutex)

Definition at line 350 of file lock.h.

#define ast_mutex_trylock ( pmutex   )     pthread_mutex_trylock(pmutex)

Definition at line 351 of file lock.h.

#define ast_mutex_unlock ( pmutex   )     pthread_mutex_unlock(pmutex)

Definition at line 306 of file lock.h.

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

Definition at line 305 of file lock.h.

#define AST_PTHREADT_NULL   (pthread_t) -1

Definition at line 22 of file lock.h.

#define AST_PTHREADT_STOP   (pthread_t) -2

Definition at line 23 of file lock.h.

#define gethostbyname   __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__

Definition at line 361 of file lock.h.

#define pthread_create   __use_ast_pthread_create_instead__

Definition at line 362 of file lock.h.

#define PTHREAD_MUTEX_INIT_VALUE   PTHREAD_MUTEX_INITIALIZER

Definition at line 47 of file lock.h.


Typedef Documentation

typedef pthread_mutex_t ast_mutex_t

Definition at line 296 of file lock.h.


Generated on Wed Oct 28 17:00:57 2009 for Asterisk by  doxygen 1.5.6