Loading include/Statsgen.h +6 −5 Original line number Diff line number Diff line Loading @@ -146,6 +146,12 @@ public: inline bool allStarted() const { return started; } bool operator==(const Statsgen& other) const; /** * @brief Given parameters in threadarg, compute statistics on partition of the file * @param threadarg : parameters and result storage */ static void* generate_stats_thread(void * threadarg); private: std::string filename; // results of the computation Loading Loading @@ -198,11 +204,6 @@ private: */ void updateMinMax(minMax & minMaxValue, const Policy & pol); /** * @brief Action of all threads * @param threadarg : all useful argument for the thread */ void * generate_stats_thread(void * threadarg); /** * @brief Compute statistics by consumming password from a queue Loading src/core/Statsgen.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -260,7 +260,7 @@ void handle_password(const string& password, const uint64_t& nbPasswords, Thread my_data->minMaxValue.updateMinMax(c.pol); } void* generate_stats_thread(void* threadarg) { void* Statsgen::generate_stats_thread(void* threadarg) { ThreadData* my_data = (ThreadData *) threadarg; ifstream readfile(my_data->filename); Loading Loading
include/Statsgen.h +6 −5 Original line number Diff line number Diff line Loading @@ -146,6 +146,12 @@ public: inline bool allStarted() const { return started; } bool operator==(const Statsgen& other) const; /** * @brief Given parameters in threadarg, compute statistics on partition of the file * @param threadarg : parameters and result storage */ static void* generate_stats_thread(void * threadarg); private: std::string filename; // results of the computation Loading Loading @@ -198,11 +204,6 @@ private: */ void updateMinMax(minMax & minMaxValue, const Policy & pol); /** * @brief Action of all threads * @param threadarg : all useful argument for the thread */ void * generate_stats_thread(void * threadarg); /** * @brief Compute statistics by consumming password from a queue Loading
src/core/Statsgen.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -260,7 +260,7 @@ void handle_password(const string& password, const uint64_t& nbPasswords, Thread my_data->minMaxValue.updateMinMax(c.pol); } void* generate_stats_thread(void* threadarg) { void* Statsgen::generate_stats_thread(void* threadarg) { ThreadData* my_data = (ThreadData *) threadarg; ifstream readfile(my_data->filename); Loading