MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::AsyncTimer Class Reference

the object to set timer from any thread and wait for alert time from another thread More...

#include <MRAsyncTimer.h>

Public Types

enum class  Event { Event::AlertTimeReached , Event::Terminate }
 to call from waiter thread More...
 

Public Member Functions

MRVIEWER_API void setTime (const Time &time)
 sets alert time, forgetting about previous time
 
MRVIEWER_API bool setTimeIfNotSet (const Time &time)
 
MRVIEWER_API void resetTime ()
 reset the timer
 
MRVIEWER_API void terminate ()
 orders the waiter thread to stop
 
MRVIEWER_API Event waitBlocking ()
 

Detailed Description

the object to set timer from any thread and wait for alert time from another thread


The documentation for this class was generated from the following file: