 |
Cytopia
0.3
A city building simulation game
|
Go to the documentation of this file.
4 template <
typename DelayType,
typename PeriodType>
9 std::lock_guard<std::mutex> lock(
m_lock);
15 const bool isCanceled = cbk();
ClockTaskHndl m_unique_handle
PriorityQueue< RealTimeClockTask, std::greater< RealTimeClockTask > > m_realTimeTasks
static constexpr ClockTaskHndl ClockTaskHndlInvalid
Invalid task handler. In case that clock is not added.
unsigned long ClockTaskHndl
ClockTask< TimePoint, TimeDuration > RealTimeClockTask
std::chrono::time_point< Clock > TimePoint
static constexpr TimePoint TimePointZero
GameClock::ClockTaskHndl addRealTimeClockTask(ClockCbk cbk, DelayType delay, PeriodType period=TimePointZero)
Add new real time clock task.
std::function< bool(void)> ClockCbk