A thread wrapper class that makes it easy to have a time throttled thread. More...
#include <TimedThread.h>
Inherited by AzNetworking::TcpListenThread, and AzNetworking::UdpReaderThread.
Public Member Functions | |
void | Start () |
Starts the thread. | |
void | Stop () |
Stops the thread. | |
void | Join () |
Joins the thread. | |
bool | IsRunning () const |
TimedThread (const char *name, AZ::TimeMs updateRate) | |
Protected Member Functions | |
virtual void | OnStart ()=0 |
Invoked on thread start. | |
virtual void | OnStop ()=0 |
Invoked on thread stop. | |
virtual void | OnUpdate (AZ::TimeMs updateRateMs)=0 |
A thread wrapper class that makes it easy to have a time throttled thread.
bool AzNetworking::TimedThread::IsRunning | ( | ) | const |
Returns true if the thread is running.
|
protectedpure virtual |
Invoked on thread update.
updateRateMs | The amount of time the thread can spend in OnUpdate in ms |