]> git.saurik.com Git - redis.git/blob - src/bio.h
Background I/O library enhanced so that the main thread can query for the number...
[redis.git] / src / bio.h
1 /* Exported API */
2 void bioInit(void);
3 void bioCreateBackgroundJob(int type, void *data);
4 unsigned long long bioPendingJobsOfType(int type);
5 void bioWaitPendingJobsLE(int type, unsigned long long num);
6
7 /* Background job opcodes */
8 #define REDIS_BIO_ZERO_OP_ID 0 /* We don't use zero as it is the most likely
9 * passed value in case of bugs/races. */
10 #define REDIS_BIO_CLOSE_FILE 1 /* Deferred close(2) syscall. */
11 #define REDIS_BIO_MAX_OP_ID 1