Home
last modified time | relevance | path

Searched refs:lh (Results 1 – 4 of 4) sorted by relevance

/unit/src/
H A Dnxt_lvlhsh.h117 #define nxt_lvlhsh_is_empty(lh) \ argument
118 ((lh)->slot == NULL)
121 #define nxt_lvlhsh_init(lh) \ argument
122 (lh)->slot = NULL
131 NXT_EXPORT nxt_int_t nxt_lvlhsh_find(nxt_lvlhsh_t *lh, nxt_lvlhsh_query_t *lhq);
147 NXT_EXPORT nxt_int_t nxt_lvlhsh_insert(nxt_lvlhsh_t *lh,
158 NXT_EXPORT nxt_int_t nxt_lvlhsh_delete(nxt_lvlhsh_t *lh,
175 NXT_EXPORT void *nxt_lvlhsh_each(nxt_lvlhsh_t *lh, nxt_lvlhsh_each_t *lhe);
183 NXT_EXPORT void *nxt_lvlhsh_peek(nxt_lvlhsh_t *lh,
192 NXT_EXPORT void *nxt_lvlhsh_retrieve(nxt_lvlhsh_t *lh,
H A Dnxt_lvlhsh.c181 nxt_lvlhsh_find(nxt_lvlhsh_t *lh, nxt_lvlhsh_query_t *lhq) in nxt_lvlhsh_find() argument
185 slot = lh->slot; in nxt_lvlhsh_find()
272 if (nxt_fast_path(lh->slot != NULL)) { in nxt_lvlhsh_insert()
276 if (nxt_lvlhsh_is_bucket(lh->slot)) { in nxt_lvlhsh_insert()
283 return nxt_lvlhsh_new_bucket(lhq, &lh->slot); in nxt_lvlhsh_insert()
630 if (nxt_fast_path(lh->slot != NULL)) { in nxt_lvlhsh_delete()
632 if (nxt_lvlhsh_is_bucket(lh->slot)) { in nxt_lvlhsh_delete()
744 slot = lh->slot; in nxt_lvlhsh_each()
755 slot = lh->slot; in nxt_lvlhsh_each()
867 slot = lh->slot; in nxt_lvlhsh_peek()
[all …]
H A Dnxt_poll_engine.c65 nxt_lvlhsh_t *lh);
681 nxt_poll_fd_hash_destroy(nxt_event_engine_t *engine, nxt_lvlhsh_t *lh) in nxt_poll_fd_hash_destroy() argument
686 phe = nxt_lvlhsh_retrieve(lh, &nxt_poll_fd_hash_proto, NULL); in nxt_poll_fd_hash_destroy()
/unit/src/test/
H A Dnxt_lvlhsh_test.c52 switch (nxt_lvlhsh_insert(lh, &lhq)) { in nxt_lvlhsh_test_add()
78 if (nxt_lvlhsh_find(lh, &lhq) == NXT_OK) { in nxt_lvlhsh_test_get()
105 ret = nxt_lvlhsh_delete(lh, &lhq); in nxt_lvlhsh_test_delete()
124 nxt_lvlhsh_t lh; in nxt_lvlhsh_test() local
154 nxt_memzero(&lh, sizeof(nxt_lvlhsh_t)); in nxt_lvlhsh_test()
171 if (nxt_lvlhsh_test_get(&lh, proto, key) != NXT_OK) { in nxt_lvlhsh_test()
179 if (nxt_lvlhsh_each(&lh, &lhe) == NULL) { in nxt_lvlhsh_test()
191 value = nxt_lvlhsh_peek(&lh, proto); in nxt_lvlhsh_test()
210 if (!nxt_lvlhsh_is_empty(&lh)) { in nxt_lvlhsh_test()
228 value = nxt_lvlhsh_retrieve(&lh, proto, mp); in nxt_lvlhsh_test()
[all …]