aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-13 14:44:09 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 23:07:13 -0400
commit8573ad716839caf34a2c9c016d5ffbcbaab5ba2e (patch)
tree8e01b033d6783da764a98616d24eeb96ecdd4bd8
parentda8196e280c9c1306fd50c77427c912182f9c274 (diff)
downloadstasis-8573ad716839caf34a2c9c016d5ffbcbaab5ba2e.tar.gz
Fix mp_pool_join example
-rw-r--r--include/multiprocessing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/multiprocessing.h b/include/multiprocessing.h
index f0e6e5c..e4ddfdf 100644
--- a/include/multiprocessing.h
+++ b/include/multiprocessing.h
@@ -63,7 +63,7 @@ struct MultiProcessingPool {
* // handle task creation error
* }
* }
- * if (mp_pool_join(mp, get_cpu_count())) {
+ * if (mp_pool_join(mp, get_cpu_count(), MP_POOL_FAIL_FAST)) {
* // handle pool execution error
* }
* mp_pool_free(&mp);