MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bioSubmitJob

Function bioSubmitJob

app/redis-6.2.6/src/bio.c:129–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

bioCreateLazyFreeJobFunction · 0.85
bioCreateCloseJobFunction · 0.85
bioCreateFsyncJobFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.85
listAddNodeTailFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected