Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 15 of 15) 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.c31 nxt_var_cache_t cache; member
59 static nxt_str_t *nxt_var_cache_value(nxt_task_t *task, nxt_var_cache_t *cache,
240 value = cache->spare; in nxt_var_cache_value()
243 value = nxt_mp_zget(cache->pool, sizeof(nxt_str_t)); in nxt_var_cache_value()
248 cache->spare = value; in nxt_var_cache_value()
257 lhq.pool = cache->pool; in nxt_var_cache_value()
259 ret = nxt_lvlhsh_insert(&cache->hash, &lhq); in nxt_var_cache_value()
270 cache->spare = NULL; in nxt_var_cache_value()
518 nxt_array_init(&parts, cache->pool, sizeof(nxt_str_t *)); in nxt_var_interpreter()
525 value = nxt_var_cache_value(task, cache, subs[i].index, ctx); in nxt_var_interpreter()
[all …]
H A Dnxt_tstr.c37 nxt_tstr_cache_t *cache; member
217 nxt_tstr_cache_t *cache, void *ctx, nxt_mp_t *mp) in nxt_tstr_query_init() argument
232 query->cache = cache; in nxt_tstr_query_init()
257 ret = nxt_var_interpreter(task, &query->cache->var, tstr->u.var, val, in nxt_tstr_query()
267 ret = nxt_js_call(task, &query->cache->js, tstr->u.js, val, query->ctx); in nxt_tstr_query()
H A Dnxt_var.h50 nxt_int_t nxt_var_interpreter(nxt_task_t *task, nxt_var_cache_t *cache,
52 nxt_str_t *nxt_var_get(nxt_task_t *task, nxt_var_cache_t *cache,
H A Dnxt_js.c202 nxt_js_call(nxt_task_t *task, nxt_js_cache_t *cache, nxt_js_t *js, in nxt_js_call() argument
219 vm = cache->vm; in nxt_js_call()
234 cache->vm = vm; in nxt_js_call()
235 cache->array = *array; in nxt_js_call()
238 value = njs_vm_array_prop(vm, &cache->array, js->index, &opaque_value); in nxt_js_call()
H A Dnxt_js.h29 nxt_int_t nxt_js_call(nxt_task_t *task, nxt_js_cache_t *cache, nxt_js_t *js,
H A Dnxt_tstr.h50 nxt_tstr_state_t *state, nxt_tstr_cache_t *cache, void *ctx,
/unit/pkg/docker/
H A DMakefile96 docker build --no-cache -t unit:$(VERSION)-$* -f Dockerfile.$* .
/unit/
H A DCHANGES129 *) Feature: TLS sessions cache.