Initial version.
This commit is contained in:
24
src/nxt_job_cache_file.c
Normal file
24
src/nxt_job_cache_file.c
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) Igor Sysoev
|
||||
* Copyright (C) NGINX, Inc.
|
||||
*/
|
||||
|
||||
|
||||
#include <nxt_main.h>
|
||||
|
||||
|
||||
nxt_job_cache_file_t *
|
||||
nxt_job_cache_file_create(nxt_mem_pool_t *mp)
|
||||
{
|
||||
nxt_job_cache_file_t *jbc;
|
||||
|
||||
jbc = nxt_job_create(mp, sizeof(nxt_job_cache_file_t));
|
||||
|
||||
if (nxt_fast_path(jbc != NULL)) {
|
||||
jbc->file.fd = NXT_FILE_INVALID;
|
||||
jbc->read_required = nxt_job_file_read_required;
|
||||
}
|
||||
|
||||
return jbc;
|
||||
}
|
||||
Reference in New Issue
Block a user