summaryrefslogtreecommitdiff
path: root/src/bio.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-11-22 10:08:44 +0100
committerantirez <antirez@gmail.com>2012-11-22 10:12:11 +0100
commit753699172620ef6c36969385c9bd697c6fc2db98 (patch)
tree70327934c6138bf0cfacd2b57a6d984bfb7c1962 /src/bio.h
parent5a9e3f58428df7d6a7a4d7cc891c95b84517183d (diff)
downloadredis-753699172620ef6c36969385c9bd697c6fc2db98.tar.gz
Make bio.c threads killable ASAP if needed.
We use this new bio.c feature in order to stop our I/O threads if there is a memory test to do on crash. In this case we don't want anything else than the main thread to run, otherwise the other threads may mess with the heap and the memory test will report a false positive.
Diffstat (limited to 'src/bio.h')
-rw-r--r--src/bio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bio.h b/src/bio.h
index 7c08a9b29..85f03ad1a 100644
--- a/src/bio.h
+++ b/src/bio.h
@@ -33,6 +33,7 @@ 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);
+void bioKillThreads(void);
/* Background job opcodes */
#define REDIS_BIO_CLOSE_FILE 0 /* Deferred close(2) syscall. */