Fixes for flaws found by gemini 3.8 on 21/10/26.

This commit is contained in:
unrealdragon 2026-10-21 21:59:19 +05:30
commit bc5760eee9

View file

@ -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;