nxt_cache.c (0:a63ceefd6ab0) nxt_cache.c (2084:7d479274f334)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10/* A cache time resolution is 10ms. */
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10/* A cache time resolution is 10ms. */
11#define \
12nxt_cache_time(thr) \
11#define nxt_cache_time(thr) \
13 (uint64_t) (nxt_thread_time(thr) * 100)
14
15
16static nxt_int_t nxt_cache_lvlhsh_test(nxt_lvlhsh_query_t *lhq, void *data);
17static nxt_work_handler_t nxt_cache_query_locked(nxt_cache_t *cache,
18 nxt_cache_query_t *q, nxt_lvlhsh_query_t *lhq);
19static nxt_work_handler_t nxt_cache_node_hold(nxt_cache_t *cache,
20 nxt_cache_query_t *q, nxt_lvlhsh_query_t *lhq);

--- 623 unchanged lines hidden ---
12 (uint64_t) (nxt_thread_time(thr) * 100)
13
14
15static nxt_int_t nxt_cache_lvlhsh_test(nxt_lvlhsh_query_t *lhq, void *data);
16static nxt_work_handler_t nxt_cache_query_locked(nxt_cache_t *cache,
17 nxt_cache_query_t *q, nxt_lvlhsh_query_t *lhq);
18static nxt_work_handler_t nxt_cache_node_hold(nxt_cache_t *cache,
19 nxt_cache_query_t *q, nxt_lvlhsh_query_t *lhq);

--- 623 unchanged lines hidden ---