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

Function bioPendingJobsOfType

src/bio.cpp:260–266  ·  view source on GitHub ↗

Return the number of pending jobs of the specified type. */

Source from the content-addressed store, hash-verified

258
259/* Return the number of pending jobs of the specified type. */
260unsigned 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

Callers 3

performEvictionsFunction · 0.85
genRedisInfoStringFunction · 0.85
aofFsyncInProgressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected