PostgreSQL Source Code git master
|
Go to the source code of this file.
Macros | |
#define | proclist_delete(list, procno, link_member) proclist_delete_offset((list), (procno), offsetof(PGPROC, link_member)) |
#define | proclist_push_head(list, procno, link_member) proclist_push_head_offset((list), (procno), offsetof(PGPROC, link_member)) |
#define | proclist_push_tail(list, procno, link_member) proclist_push_tail_offset((list), (procno), offsetof(PGPROC, link_member)) |
#define | proclist_pop_head_node(list, link_member) proclist_pop_head_node_offset((list), offsetof(PGPROC, link_member)) |
#define | proclist_contains(list, procno, link_member) proclist_contains_offset((list), (procno), offsetof(PGPROC, link_member)) |
#define | proclist_foreach_modify(iter, lhead, link_member) |
Functions | |
static void | proclist_init (proclist_head *list) |
static bool | proclist_is_empty (const proclist_head *list) |
static proclist_node * | proclist_node_get (int procno, size_t node_offset) |
static void | proclist_push_head_offset (proclist_head *list, int procno, size_t node_offset) |
static void | proclist_push_tail_offset (proclist_head *list, int procno, size_t node_offset) |
static void | proclist_delete_offset (proclist_head *list, int procno, size_t node_offset) |
static bool | proclist_contains_offset (const proclist_head *list, int procno, size_t node_offset) |
static PGPROC * | proclist_pop_head_node_offset (proclist_head *list, size_t node_offset) |
#define proclist_contains | ( | list, | |
procno, | |||
link_member | |||
) | proclist_contains_offset((list), (procno), offsetof(PGPROC, link_member)) |
Definition at line 195 of file proclist.h.
#define proclist_delete | ( | list, | |
procno, | |||
link_member | |||
) | proclist_delete_offset((list), (procno), offsetof(PGPROC, link_member)) |
Definition at line 187 of file proclist.h.
#define proclist_foreach_modify | ( | iter, | |
lhead, | |||
link_member | |||
) |
Definition at line 206 of file proclist.h.
#define proclist_pop_head_node | ( | list, | |
link_member | |||
) | proclist_pop_head_node_offset((list), offsetof(PGPROC, link_member)) |
Definition at line 193 of file proclist.h.
#define proclist_push_head | ( | list, | |
procno, | |||
link_member | |||
) | proclist_push_head_offset((list), (procno), offsetof(PGPROC, link_member)) |
Definition at line 189 of file proclist.h.
#define proclist_push_tail | ( | list, | |
procno, | |||
link_member | |||
) | proclist_push_tail_offset((list), (procno), offsetof(PGPROC, link_member)) |
Definition at line 191 of file proclist.h.
|
inlinestatic |
Definition at line 146 of file proclist.h.
References Assert, INVALID_PROC_NUMBER, sort-test::list, proclist_node::next, proclist_node::prev, and proclist_node_get().
|
inlinestatic |
Definition at line 115 of file proclist.h.
References Assert, INVALID_PROC_NUMBER, sort-test::list, proclist_node::next, proclist_node::prev, and proclist_node_get().
Referenced by proclist_pop_head_node_offset().
|
inlinestatic |
Definition at line 29 of file proclist.h.
References INVALID_PROC_NUMBER, and sort-test::list.
Referenced by ConditionVariableInit(), LWLockInitialize(), LWLockUpdateVar(), and LWLockWakeup().
|
inlinestatic |
Definition at line 38 of file proclist.h.
References INVALID_PROC_NUMBER, and sort-test::list.
Referenced by ConditionVariableBroadcast(), ConditionVariableSignal(), LWLockDequeueSelf(), LWLockWakeup(), and proclist_pop_head_node_offset().
|
inlinestatic |
Definition at line 48 of file proclist.h.
References GetPGProcByNumber.
Referenced by proclist_contains_offset(), proclist_delete_offset(), proclist_push_head_offset(), and proclist_push_tail_offset().
|
inlinestatic |
Definition at line 173 of file proclist.h.
References Assert, GetPGProcByNumber, sort-test::list, proclist_delete_offset(), and proclist_is_empty().
|
inlinestatic |
Definition at line 59 of file proclist.h.
References Assert, INVALID_PROC_NUMBER, sort-test::list, proclist_node::next, proclist_node::prev, and proclist_node_get().
|
inlinestatic |
Definition at line 87 of file proclist.h.
References Assert, INVALID_PROC_NUMBER, sort-test::list, proclist_node::next, proclist_node::prev, and proclist_node_get().