X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1710ae7ecbb5d366a11a7e5b7fff135a48c6b146..f0eb9ed1492509eeaa51629e9dc95b729a8481e3:/src/xbt/threadpool_private.h?ds=inline diff --git a/src/xbt/threadpool_private.h b/src/xbt/threadpool_private.h index fee8965f7b..1db6c8e18e 100644 --- a/src/xbt/threadpool_private.h +++ b/src/xbt/threadpool_private.h @@ -11,6 +11,7 @@ #include "xbt/xbt_os_thread.h" #include "xbt/sysdep.h" #include "xbt/dynar.h" +#include "xbt/log.h" typedef enum{ TPOOL_WAIT = 0, @@ -21,10 +22,11 @@ typedef struct s_xbt_tpool { xbt_os_mutex_t mutex; /* pool's mutex */ xbt_os_cond_t job_posted; /* job is posted */ xbt_os_cond_t job_taken; /* job is taken */ - xbt_os_cond_t all_jobs_done; /* all jobs are finished */ + xbt_os_cond_t job_done; /* job is done */ xbt_dynar_t jobs_queue; e_xbt_tpool_flag_t flags; unsigned int num_workers; + unsigned int num_idle_workers; unsigned int max_jobs; } s_xbt_tpool_t; @@ -33,4 +35,4 @@ typedef struct s_xbt_tpool_job { void *fun_arg; } s_xbt_tpool_job_t, *xbt_tpool_job_t; -#endif \ No newline at end of file +#endif