diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-22 01:29:34 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-22 01:29:34 -0400 |
commit | 261a8251150268aa2dd1d24044db281a70af2c86 (patch) | |
tree | 44f4625ec7d7d1b17f1aa6ad5a1ea92e67fdad11 /include | |
parent | a27fb62977c7a3faf9032ffbc7e6531700e30441 (diff) | |
download | stasis-261a8251150268aa2dd1d24044db281a70af2c86.tar.gz |
Add MP_POOL_TASK_STATUS_INITIAL
* Better than putting -1 everywhere
Diffstat (limited to 'include')
-rw-r--r-- | include/multiprocessing.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |