Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 10 of 10) sorted by relevance

/unit/src/
H A Dnxt_file_cache.c46 cache->lvlhsh.ctx = &ctx; in nxt_file_cache_init()
73 if (cache != NULL) { in nxt_file_cache_query()
169 qw->cache = cache; in nxt_file_cache_query_locked()
284 cache = qw->cache; in nxt_cache_wake_handler()
286 nxt_cache_lock(cache); in nxt_cache_wake_handler()
326 node = cache->alloc(cache->data, sizeof(nxt_cache_node_t)); in nxt_cache_node_alloc()
345 cache->free(cache->data, node); in nxt_cache_node_free()
368 qw = cache->alloc(cache->data, sizeof(nxt_cache_query_wait_t)); in nxt_cache_query_wait_alloc()
389 cache->free(cache->data, qw); in nxt_cache_query_wait_free()
496 if (cache->shared) { in nxt_file_cache_lock()
[all …]
H A Dnxt_cache.c47 nxt_cache_t *cache; in nxt_cache_shm_create() local
59 if (cache == NULL) { in nxt_cache_shm_create()
64 cache->pool = mz; in nxt_cache_shm_create()
114 if (cache->shared) { in nxt_cache_lock()
277 qw->cache = cache; in nxt_cache_node_hold()
388 cache = qw->cache; in nxt_cache_wake_handler()
542 ret = cache->delete_copy(cache, node, buf, size); in nxt_cache_release_locked()
576 node = cache->alloc(cache->data, sizeof(nxt_cache_node_t)); in nxt_cache_node_alloc()
595 cache->free(cache->data, node); in nxt_cache_node_free()
618 qw = cache->alloc(cache->data, sizeof(nxt_cache_query_wait_t)); in nxt_cache_query_wait_alloc()
[all …]
H A Dnxt_work_queue.c98 cache->chunk_size = chunk_size - 1; in nxt_work_queue_cache_create()
100 while (cache->next == NULL) { in nxt_work_queue_cache_create()
126 n = cache->chunk_size; in nxt_work_queue_allocate()
133 chunk->next = cache->chunk; in nxt_work_queue_allocate()
134 cache->chunk = chunk; in nxt_work_queue_allocate()
144 } else if (cache->spare != NULL) { in nxt_work_queue_allocate()
152 cache->next = cache->spare; in nxt_work_queue_allocate()
153 cache->spare = work; in nxt_work_queue_allocate()
168 work = wq->cache->next; in nxt_work_queue_add()
220 work->next = wq->cache->next; in nxt_work_queue_pop()
[all …]
H A Dnxt_event_engine.c601 return cache; in nxt_event_engine_mem_alloc()
604 cache->free = NULL; in nxt_event_engine_mem_alloc()
605 cache->size = size; in nxt_event_engine_mem_alloc()
606 cache->count = 0; in nxt_event_engine_mem_alloc()
615 cache = mem_cache->elts; in nxt_event_engine_mem_alloc()
616 cache = cache + n; in nxt_event_engine_mem_alloc()
618 block = cache->free; in nxt_event_engine_mem_alloc()
622 cache->count--; in nxt_event_engine_mem_alloc()
641 cache = mem_cache->elts; in nxt_event_engine_mem_free()
663 cache = cache + n; in nxt_event_engine_mem_free()
[all …]
H A Dnxt_cache.h74 nxt_cache_t *cache; member
116 NXT_EXPORT void nxt_cache_init(nxt_cache_t *cache);
117 NXT_EXPORT void nxt_cache_query(nxt_cache_t *cache, nxt_cache_query_t *q);
118 NXT_EXPORT void nxt_cache_release(nxt_cache_t *cache, nxt_cache_query_t *q);
119 NXT_EXPORT nxt_int_t nxt_cache_update(nxt_cache_t *cache, nxt_cache_query_t *q);
H A Dnxt_work_queue.h68 nxt_work_queue_cache_t *cache; member
81 nxt_work_queue_cache_t cache; member
85 NXT_EXPORT void nxt_work_queue_cache_create(nxt_work_queue_cache_t *cache,
87 NXT_EXPORT void nxt_work_queue_cache_destroy(nxt_work_queue_cache_t *cache);
H A Dnxt_job_file_cache.c18 nxt_job_file_cache_read(nxt_cache_t *cache, nxt_job_file_t *jbf) in nxt_job_file_cache_read() argument
22 node = nxt_cache_find(cache); in nxt_job_file_cache_read()
H A Dnxt_var.c39 nxt_lvlhsh_t cache; member
487 ret = nxt_var_cache_add(&query->cache, index, value, mp); in nxt_var_query()
573 str = nxt_var_cache_find(&query->cache, subs[j].index); in nxt_var_query_finish()
/unit/pkg/docker/
H A DMakefile96 docker build --no-cache -t unit:$(VERSION)-$* -f Dockerfile.$* .
/unit/
H A DCHANGES90 *) Feature: TLS sessions cache.