#include <pthread.h>
#include <asterisk/lock.h>
Go to the source code of this file.
Defines | |
#define | AST_LIST_LOCK(head) ast_mutex_lock(&head->lock) |
#define | AST_LIST_UNLOCK(head) ast_mutex_unlock(&head->lock) |
#define | AST_LIST_HEAD(name, type) |
#define | AST_LIST_HEAD_INITIALIZER(head) { NULL, AST_MUTEX_INITIALIZER } |
#define | AST_LIST_HEAD_SET(head, entry) |
#define | AST_LIST_ENTRY(type) |
#define | AST_LIST_FIRST(head) ((head)->first) |
#define | AST_LIST_NEXT(elm, field) ((elm)->field.next) |
#define | AST_LIST_EMPTY(head) (AST_LIST_FIRST(head) == NULL) |
#define | AST_LIST_TRAVERSE(head, var, field) for((var) = (head)->first; (var); (var) = (var)->field.next) |
#define | AST_LIST_HEAD_INIT(head) |
#define | AST_LIST_INSERT_AFTER(listelm, elm, field) |
#define | AST_LIST_INSERT_HEAD(head, elm, field) |
#define | AST_LIST_INSERT_TAIL(head, elm, type, field) |
#define | AST_LIST_REMOVE_HEAD(head, field) |
#define | AST_LIST_REMOVE(head, elm, type, field) |
|
Definition at line 36 of file linkedlists.h. Referenced by ast_channel_free(). |
|
Value: struct { \ struct type *next; \ } Definition at line 27 of file linkedlists.h. |
|
Definition at line 32 of file linkedlists.h. Referenced by ast_channel_free(). |
|
Value: struct name { \ struct type *first; \ ast_mutex_t lock; \ } Definition at line 13 of file linkedlists.h. |
|
Value: { \ (head)->first = NULL; \ ast_pthread_mutex_init(&(head)->lock,NULL); \ } Definition at line 41 of file linkedlists.h. Referenced by ast_channel_alloc(). |
|
Definition at line 19 of file linkedlists.h. |
|
Value: do { \ (head)->first=(entry); \ ast_pthread_mutex_init(&(head)->lock,NULL); \ } while (0) Definition at line 22 of file linkedlists.h. |
|
Value: do { \ (elm)->field.next = (listelm)->field.next; \ (listelm)->field.next = (elm); \ } while (0) Definition at line 46 of file linkedlists.h. |
|
Value: do { \ (elm)->field.next = (head)->first; \ (head)->first = (elm); \ } while (0) Definition at line 51 of file linkedlists.h. Referenced by ast_channel_alloc(), and pbx_builtin_setvar_helper(). |
|
Definition at line 56 of file linkedlists.h. |
|
Definition at line 7 of file linkedlists.h. |
|
Definition at line 34 of file linkedlists.h. |
|
Definition at line 73 of file linkedlists.h. |
|
Value: do { \ (head)->first = (head)->first->field.next; \ } while (0) Definition at line 69 of file linkedlists.h. Referenced by ast_channel_free(). |
|
Definition at line 38 of file linkedlists.h. |
|
Definition at line 10 of file linkedlists.h. |