ngx_rbtree_init()
This commit is contained in:
parent
927cf70a5f
commit
413cc634bf
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,13 @@ struct ngx_rbtree_s {
|
|||
};
|
||||
|
||||
|
||||
#define ngx_rbtree_init(tree, s, i) \
|
||||
ngx_rbtree_sentinel_init(s); \
|
||||
(tree)->root = s; \
|
||||
(tree)->sentinel = s; \
|
||||
(tree)->insert = i
|
||||
|
||||
|
||||
void ngx_rbtree_insert(ngx_thread_volatile ngx_rbtree_t *tree,
|
||||
ngx_rbtree_node_t *node);
|
||||
void ngx_rbtree_delete(ngx_thread_volatile ngx_rbtree_t *tree,
|
||||
|
|
Loading…
Reference in a new issue