From 5d21c2c6eab632cc519eb23e529c2d985ac04921 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 21 Oct 2024 12:11:05 -0400 Subject: Change signature: * delivery_gather_tool_versions now returns non-zero if unable to determine a tool's version --- include/delivery.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/delivery.h b/include/delivery.h index bd5137c..345cd13 100644 --- a/include/delivery.h +++ b/include/delivery.h @@ -385,7 +385,7 @@ void delivery_install_conda(char *install_script, char *conda_install_dir); int delivery_format_str(struct Delivery *ctx, char **dest, const char *fmt); // helper function -void delivery_gather_tool_versions(struct Delivery *ctx); +int delivery_gather_tool_versions(struct Delivery *ctx); // helper function int delivery_init_tmpdir(struct Delivery *ctx); -- cgit From 261a8251150268aa2dd1d24044db281a70af2c86 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 22 Oct 2024 01:29:34 -0400 Subject: Add MP_POOL_TASK_STATUS_INITIAL * Better than putting -1 everywhere --- include/multiprocessing.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/multiprocessing.h b/include/multiprocessing.h index 5919462..ec7c1ad 100644 --- a/include/multiprocessing.h +++ b/include/multiprocessing.h @@ -38,6 +38,9 @@ struct MultiProcessingPool { int status_interval; ///< Report a pooled task is "running" every n seconds }; +/// A multiprocessing task's initial state (i.e. "FAIL") +#define MP_POOL_TASK_STATUS_INITIAL (-1) + /// Maximum number of multiprocessing tasks STASIS can execute #define MP_POOL_TASK_MAX 1000 -- cgit