Asterisk - The Open Source Telephony Project GIT-master-f36a736
Macros | Enumerations | Functions
named_locks.h File Reference

Named Locks. More...

#include "asterisk/astobj2.h"
Include dependency graph for named_locks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ast_named_lock_get(lock_type, keyspace, key)
 Geta named lock handle. More...
 
#define ast_named_lock_put(lock)   ao2_cleanup(lock)
 Put a named lock handle away. More...
 

Enumerations

enum  ast_named_lock_type { AST_NAMED_LOCK_TYPE_MUTEX = AO2_ALLOC_OPT_LOCK_MUTEX , AST_NAMED_LOCK_TYPE_RWLOCK = AO2_ALLOC_OPT_LOCK_RWLOCK }
 Which type of lock to request. More...
 

Functions

struct ast_named_lock__ast_named_lock_get (const char *filename, int lineno, const char *func, enum ast_named_lock_type lock_type, const char *keyspace, const char *key)
 

Detailed Description

Named Locks.

Author
George Joseph georg.nosp@m.e.jo.nosp@m.seph@.nosp@m.fair.nosp@m.view5.nosp@m..com

Definition in file named_locks.h.