summaryrefslogtreecommitdiff
path: root/src/bio.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-09-15 15:46:29 +0200
committerantirez <antirez@gmail.com>2011-09-15 18:21:16 +0200
commit50be9b97bc975439cb34703acad5ac108952e672 (patch)
tree3ae62b4a538a57e67f1c6c6f672b9a70f3566cf5 /src/bio.h
parent91de5421b250874cfff7554ae48cdb7dbc757789 (diff)
downloadredis-50be9b97bc975439cb34703acad5ac108952e672.tar.gz
Use a different thread for every different type of background job
Diffstat (limited to 'src/bio.h')
-rw-r--r--src/bio.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bio.h b/src/bio.h
index ded0d2dce..ebd01ee28 100644
--- a/src/bio.h
+++ b/src/bio.h
@@ -1,11 +1,10 @@
/* Exported API */
void bioInit(void);
-void bioCreateBackgroundJob(int type, void *data);
+void bioCreateBackgroundJob(int type, void *arg1, void *arg2, void *arg3);
unsigned long long bioPendingJobsOfType(int type);
void bioWaitPendingJobsLE(int type, unsigned long long num);
+time_t bioOlderJobOfType(int type);
/* Background job opcodes */
-#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
+#define REDIS_BIO_CLOSE_FILE 0 /* Deferred close(2) syscall. */
+#define REDIS_BIO_NUM_OPS 1