diff options
author | antirez <antirez@gmail.com> | 2012-11-22 10:08:44 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-11-22 10:12:11 +0100 |
commit | 753699172620ef6c36969385c9bd697c6fc2db98 (patch) | |
tree | 70327934c6138bf0cfacd2b57a6d984bfb7c1962 /src/bio.h | |
parent | 5a9e3f58428df7d6a7a4d7cc891c95b84517183d (diff) | |
download | redis-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. */ |