2011-09-13 09:59:48 -04:00
|
|
|
/* Exported API */
|
|
|
|
void bioInit(void);
|
|
|
|
void bioCreateBackgroundJob(int type, void *data);
|
2011-09-14 12:39:29 -04:00
|
|
|
unsigned long long bioPendingJobsOfType(int type);
|
|
|
|
void bioWaitPendingJobsLE(int type, unsigned long long num);
|
2011-09-13 09:59:48 -04:00
|
|
|
|
|
|
|
/* Background job opcodes */
|
2011-09-14 12:39:29 -04:00
|
|
|
#define REDIS_BIO_ZERO_OP_ID 0 /* We don't use zero as it is the most likely
|
|
|
|
* passed value in case of bugs/races. */
|
|
|
|
#define REDIS_BIO_CLOSE_FILE 1 /* Deferred close(2) syscall. */
|
|
|
|
#define REDIS_BIO_MAX_OP_ID 1
|