diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-02 15:00:57 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-02 15:00:57 -0400 |
commit | b041e8216c05940f5b3676ef5c7e0ce2b4441bc8 (patch) | |
tree | 55b6d4e8caa96e502e518fe465f418127f38d8f3 /src/multiprocessing.c | |
parent | 6fe8c2572fbf73cee3936ab241fcbfbdd54fe633 (diff) | |
download | stasis-b041e8216c05940f5b3676ef5c7e0ce2b4441bc8.tar.gz |
"Task started" is more accurate than "queued" when this is printed
Diffstat (limited to 'src/multiprocessing.c')
-rw-r--r-- | src/multiprocessing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index baa6df7..2a1b350 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -1,6 +1,6 @@ #include "core.h" -/// The sum of all tasks queued by mp_task() +/// The sum of all tasks started by mp_task() size_t mp_global_task_count = 0; static struct MultiProcessingTask *mp_pool_next_available(struct MultiProcessingPool *pool) { @@ -59,7 +59,7 @@ int child(struct MultiProcessingPool *pool, struct MultiProcessingTask *task) { } int parent(struct MultiProcessingPool *pool, struct MultiProcessingTask *task, pid_t pid, int *child_status) { - printf("[%s:%s] Task queued (pid: %d)\n", pool->ident, task->ident, pid); + printf("[%s:%s] Task started (pid: %d)\n", pool->ident, task->ident, pid); // Give the child process access to our PID value task->pid = pid; |