From 8573ad716839caf34a2c9c016d5ffbcbaab5ba2e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 13 Sep 2024 14:44:09 -0400 Subject: Fix mp_pool_join example --- include/multiprocessing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/multiprocessing.h') 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); -- cgit