Return the number of pending jobs of the specified type. */
| 258 | |
| 259 | /* Return the number of pending jobs of the specified type. */ |
| 260 | unsigned long long bioPendingJobsOfType(int type) { |
| 261 | unsigned long long val; |
| 262 | pthread_mutex_lock(&bio_mutex[type]); |
| 263 | val = bio_pending[type]; |
| 264 | pthread_mutex_unlock(&bio_mutex[type]); |
| 265 | return val; |
| 266 | } |
| 267 | |
| 268 | /* If there are pending jobs for the specified type, the function blocks |
| 269 | * and waits that the next job was processed. Otherwise the function |
no outgoing calls
no test coverage detected