about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-11 19:06:27 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-11 19:06:27 +0000
commitf83d0466afc32542f3f4ff962105c817a1be2c96 (patch)
treec6b9e2b0b9002baf4b6f2cabb982dd0820cceba6 /cmogstored.h
parentdaab757f5e52ce36a47e2d713365d68367a0e6dd (diff)
downloadcmogstored-f83d0466afc32542f3f4ff962105c817a1be2c96.tar.gz
We want to yield dying threads as soon as possible during
thread shutdown, so we check the quit flag and yield the
running thread to trigger a MOG_NEXT_ACTIVE.
Diffstat (limited to 'cmogstored.h')
-rw-r--r--cmogstored.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h
index 4162931..487a70d 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -426,6 +426,7 @@ char *mog_canonpath_die(const char *path, enum canonicalize_mode_t canon_mode);
 
 /* thrpool.c */
 void mog_thr_test_quit(void);
+bool mog_thr_prepare_quit(void) MOG_CHECK;
 void mog_thrpool_start(struct mog_thrpool *, size_t n,
                        void *(*start_fn)(void *), void *arg);
 void mog_thrpool_quit(struct mog_thrpool *, struct mog_queue *);