Fixes for flaws found by gemini 3.8 on 21/10/26.
This commit is contained in:
parent
41c405a0c5
commit
bc5760eee9
1 changed files with 105 additions and 84 deletions
|
|
@ -10,16 +10,19 @@
|
|||
|
||||
class ExecutionManager
|
||||
{
|
||||
struct WorkerThread {
|
||||
std::thread thread;
|
||||
std::atomic<bool> done{false};
|
||||
};
|
||||
bool finished = false;
|
||||
int threads;
|
||||
int index_count = 0;
|
||||
int initial_list_size = 0;
|
||||
long long int log_file_max_size = 0;
|
||||
std::string log_dir;
|
||||
std::mutex job_list_mutex;
|
||||
std::atomic<int> state_change = 0;
|
||||
std::atomic<int> active_thread_count = 0;
|
||||
std::vector<std::shared_ptr<std::thread>> thread_list;
|
||||
std::vector<std::shared_ptr<WorkerThread>> thread_list;
|
||||
std::vector<std::shared_ptr<AppInfo>> job_list;
|
||||
std::vector<std::shared_ptr<AppInfo>> scheduled_list;
|
||||
std::chrono::system_clock::time_point last_poll_time;
|
||||
|
|
|
|||
Loading…
Reference in a new issue