MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / bioSubmitJob

Function bioSubmitJob

src/bio.cpp:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void bioSubmitJob(int type, struct bio_job *job) {
131 job->time = time(NULL);
132 pthread_mutex_lock(&bio_mutex[type]);
133 listAddNodeTail(bio_jobs[type],job);
134 bio_pending[type]++;
135 pthread_cond_signal(&bio_newjob_cond[type]);
136 pthread_mutex_unlock(&bio_mutex[type]);
137}
138
139void bioCreateLazyFreeJob(lazy_free_fn free_fn, int arg_count, ...) {
140 va_list valist;

Callers 3

bioCreateLazyFreeJobFunction · 0.85
bioCreateCloseJobFunction · 0.85
bioCreateFsyncJobFunction · 0.85

Calls 1

listAddNodeTailFunction · 0.85

Tested by

no test coverage detected