diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/multiprocessing.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/include/multiprocessing.h b/include/multiprocessing.h index 4e89722..2356403 100644 --- a/include/multiprocessing.h +++ b/include/multiprocessing.h @@ -15,9 +15,14 @@ struct MultiProcessingTask {      pid_t pid; ///< Program PID      pid_t parent_pid; ///< Program PID (parent process)      int status; ///< Child process exit status +    int signaled_by; ///< Last signal received, if any      char ident[255]; ///< Identity of the pool task      char log_file[255]; ///< Path to stdout/stderr log file      char parent_script[PATH_MAX]; ///< Path to temporary script executing the task +    struct { +        struct timespec t_start; +        struct timespec t_stop; +    } time_data; ///< Wall-time counters  };  struct MultiProcessingPool { @@ -104,6 +109,13 @@ struct MultiProcessingTask *mp_task(struct MultiProcessingPool *pool, const char  int mp_pool_join(struct MultiProcessingPool *pool, size_t jobs, size_t flags);  /** + * Show summary of pool tasks + * + * @pararm pool a pointer to MultiProcessingPool + */ +void mp_pool_show_summary(struct MultiProcessingPool *pool); + +/**   * Release resources allocated by mp_pool_init()   *   * @param a pointer to MultiProcessingPool | 
