From: Arnaud Giersch Date: Thu, 3 Aug 2017 20:01:57 +0000 (+0200) Subject: Please codacy (initialize member variables). X-Git-Tag: v3_17~256 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5f2d05d4c43cf7fd8475787bc12261252f0edada Please codacy (initialize member variables). --- diff --git a/src/include/xbt/parmap.hpp b/src/include/xbt/parmap.hpp index a47f35f92d..24affcc830 100644 --- a/src/include/xbt/parmap.hpp +++ b/src/include/xbt/parmap.hpp @@ -138,15 +138,16 @@ private: Synchro* new_synchro(e_xbt_parmap_mode_t mode); void work(); - Flag status; /**< is the parmap active or being destroyed? */ - unsigned work_round; /**< index of the current round */ - unsigned thread_counter; /**< number of workers that have done the work */ - unsigned num_workers; /**< total number of worker threads including the controller */ - xbt_os_thread_t* workers; /**< worker thread handlers */ - void (*fun)(const T); /**< function to run in parallel on each element of data */ - const std::vector* data; /**< parameters to pass to fun in parallel */ - std::atomic index; /**< index of the next element of data to pick */ - Synchro* synchro; /**< synchronization object */ + Flag status; /**< is the parmap active or being destroyed? */ + unsigned work_round; /**< index of the current round */ + xbt_os_thread_t* workers; /**< worker thread handlers */ + unsigned num_workers; /**< total number of worker threads including the controller */ + Synchro* synchro; /**< synchronization object */ + + unsigned thread_counter = 0; /**< number of workers that have done the work */ + void (*fun)(const T) = nullptr; /**< function to run in parallel on each element of data */ + const std::vector* data = nullptr; /**< parameters to pass to fun in parallel */ + std::atomic index; /**< index of the next element of data to pick */ }; /**