about summary refs log tree commit homepage
path: root/thrpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'thrpool.c')
-rw-r--r--thrpool.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thrpool.c b/thrpool.c
index 9cf8196..918fef8 100644
--- a/thrpool.c
+++ b/thrpool.c
@@ -66,6 +66,12 @@ void mog_thr_test_quit(void)
         }
 }
 
+bool mog_thr_prepare_quit(void)
+{
+        /* no barriers or atomic instructions, this is just a hint */
+        return !!mog_do_quit;
+}
+
 /*
  * we no longer rely on pthreads cancellation, so our explicit checks for
  * thread quitting requires us to continuously signal a thread for death