game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
task_scheduler.cpp File Reference
#include "services/task_scheduler.h"
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <ctime>
#include <fstream>
#include <map>
#include <mutex>
#include <random>
#include <sstream>
#include <thread>
Include dependency graph for task_scheduler.cpp:

Go to the source code of this file.

Classes

struct  TaskScheduler::Impl
struct  InternalTask

Namespaces

namespace  anonymous_namespace{task_scheduler.cpp}

Functions

std::string anonymous_namespace{task_scheduler.cpp}::formatTime (std::chrono::system_clock::time_point tp)
std::string anonymous_namespace{task_scheduler.cpp}::generateUUID ()
std::string taskPriorityName (TaskPriority priority)
 Get human-readable priority name.
std::string taskStateName (TaskState state)
 Get human-readable state name.

Function Documentation

◆ taskPriorityName()

std::string taskPriorityName ( TaskPriority priority)

Get human-readable priority name.

Definition at line 91 of file task_scheduler.cpp.

References Critical, High, Low, and Normal.

◆ taskStateName()

std::string taskStateName ( TaskState state)

Get human-readable state name.

Definition at line 108 of file task_scheduler.cpp.

References Cancelled, Completed, Failed, Paused, Pending, and Running.

Referenced by ScheduledTask::getStateStr().