9 std::chrono::high_resolution_clock timer;
10 auto next = timer.now();
26 std::this_thread::sleep_until(next);
std::atomic< bool > _shutdownRequested
Worker thread shutdown requested.
virtual void MailboxWillBeDisconnected() noexceptoverride
Called right before the mailbox is disconnected from its endpoint or if the attached endpoint is abou...
virtual void MailboxWasConnected() noexceptoverride
Called when the mailbox is attached to an already running endpoint or if the attached endpoint has ju...
void Worker()
Worker thread entry point.
std::thread * _worker
Worker thread.
std::chrono::milliseconds _period
Tick period.
virtual void Update()=0
Called periodically to perform work.