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