diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/jobs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/jobs.h b/src/util/jobs.h new file mode 100644 index 0000000..bb9a8e4 --- /dev/null +++ b/src/util/jobs.h @@ -0,0 +1,7 @@ +/* See LICENSE file for copyright and license details. */ + +#define efork_jobs(...) enfork_jobs(1, __VA_ARGS__) +#define ejoin_jobs(...) enjoin_jobs(1, __VA_ARGS__) + +int enfork_jobs(int status, size_t *start, size_t *end, size_t jobs); +void enjoin_jobs(int status, int is_master); |
