| 128 | } |
| 129 | |
| 130 | void 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 | |
| 139 | void bioCreateLazyFreeJob(lazy_free_fn free_fn, int arg_count, ...) { |
| 140 | va_list valist; |
no test coverage detected