|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Public Member Functions | |
| void | executeTask (const std::string &taskId) |
| std::optional< std::string > | getNextTaskToRun () |
| void | updateNextRunTime (const std::string &taskId) |
| void | workerLoop () |
Public Attributes | |
| std::condition_variable | cv |
| std::mutex | mutex |
| OnTaskComplete | onTaskComplete |
| OnTaskError | onTaskError |
| OnTaskStateChange | onTaskStateChange |
| std::atomic< bool > | paused {false} |
| std::atomic< bool > | running {false} |
| std::atomic< bool > | stopRequested {false} |
| std::map< std::string, InternalTask > | tasks |
| std::atomic< int > | totalExecuted {0} |
| std::atomic< int > | totalFailed {0} |
| std::thread | workerThread |
Definition at line 143 of file task_scheduler.cpp.
| void TaskScheduler::Impl::executeTask | ( | const std::string & | taskId | ) |
Definition at line 856 of file task_scheduler.cpp.
References Completed, TaskResult::duration, TaskResult::errorDetails, Failed, TaskResult::message, mutex, onTaskComplete, onTaskError, onTaskStateChange, Pending, Running, TaskResult::success, tasks, totalExecuted, and totalFailed.
Referenced by workerLoop().
| std::optional< std::string > TaskScheduler::Impl::getNextTaskToRun | ( | ) |
Definition at line 1002 of file task_scheduler.cpp.
References Low, Pending, and tasks.
Referenced by workerLoop().
| void TaskScheduler::Impl::updateNextRunTime | ( | const std::string & | taskId | ) |
Definition at line 1050 of file task_scheduler.cpp.
References tasks.
| void TaskScheduler::Impl::workerLoop | ( | ) |
Definition at line 789 of file task_scheduler.cpp.
References cv, executeTask(), getNextTaskToRun(), mutex, paused, running, stopRequested, and tasks.
Referenced by TaskScheduler::start().
| std::condition_variable TaskScheduler::Impl::cv |
Definition at line 150 of file task_scheduler.cpp.
Referenced by workerLoop().
|
mutable |
Definition at line 151 of file task_scheduler.cpp.
Referenced by executeTask(), and workerLoop().
| OnTaskComplete TaskScheduler::Impl::onTaskComplete |
Definition at line 154 of file task_scheduler.cpp.
Referenced by executeTask().
| OnTaskError TaskScheduler::Impl::onTaskError |
Definition at line 155 of file task_scheduler.cpp.
Referenced by executeTask().
| OnTaskStateChange TaskScheduler::Impl::onTaskStateChange |
Definition at line 156 of file task_scheduler.cpp.
Referenced by executeTask().
| std::atomic<bool> TaskScheduler::Impl::paused {false} |
Definition at line 148 of file task_scheduler.cpp.
Referenced by workerLoop().
| std::atomic<bool> TaskScheduler::Impl::running {false} |
Definition at line 147 of file task_scheduler.cpp.
Referenced by workerLoop().
| std::atomic<bool> TaskScheduler::Impl::stopRequested {false} |
Definition at line 149 of file task_scheduler.cpp.
Referenced by workerLoop().
| std::map<std::string, InternalTask> TaskScheduler::Impl::tasks |
Definition at line 145 of file task_scheduler.cpp.
Referenced by executeTask(), getNextTaskToRun(), updateNextRunTime(), and workerLoop().
| std::atomic<int> TaskScheduler::Impl::totalExecuted {0} |
Definition at line 159 of file task_scheduler.cpp.
Referenced by executeTask().
| std::atomic<int> TaskScheduler::Impl::totalFailed {0} |
Definition at line 160 of file task_scheduler.cpp.
Referenced by executeTask().
| std::thread TaskScheduler::Impl::workerThread |
Definition at line 146 of file task_scheduler.cpp.