Mercurial > hg > nginx
diff src/core/ngx_rbtree.h @ 1686:33c2e3c6f02c
ngx_rbtree_init()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 03 Dec 2007 12:17:15 +0000 |
parents | 68cc5e2e1a5d |
children | d620f497c50f |
line wrap: on
line diff
--- a/src/core/ngx_rbtree.h +++ b/src/core/ngx_rbtree.h @@ -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,