Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GameLoop.h>
Public Member Functions | |
CGameLoop (IGameLoopCallback *callback, double fps) | |
~CGameLoop () override | |
void | Start () |
void | Stop () |
double | FPS () const |
double | GetSpeed () const |
void | SetSpeed (double speedFactor) |
void | PauseAsync () |
Protected Member Functions | |
void | Process () override |
Protected Member Functions inherited from CThread | |
CThread (const char *ThreadName) | |
virtual void | OnStartup () |
virtual void | OnExit () |
WaitResponse | AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1)) |
CThread (IRunnable *pRunnable, const char *ThreadName) | |
virtual | ~CThread () |
void | Create (bool bAutoDelete=false) |
template<typename Rep , typename Period > | |
void | Sleep (std::chrono::duration< Rep, Period > duration) |
bool | IsAutoDelete () const |
virtual void | StopThread (bool bWait=true) |
bool | IsRunning () const |
bool | IsCurrentThread () const |
bool | Join (std::chrono::milliseconds duration) |
bool | SetPriority (const ThreadPriority &priority) |
Set the threads priority. This uses the platforms native threading library to do so. | |
virtual void | OnException () |
Additional Inherited Members | |
Protected Types inherited from CThread | |
enum | WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 } |
Static Protected Member Functions inherited from CThread | |
static const std::thread::id | GetCurrentThreadId () |
static CThread * | GetCurrentThread () |
Protected Attributes inherited from CThread | |
std::atomic< bool > | m_bStop |
CGameLoop::CGameLoop | ( | IGameLoopCallback * | callback, |
double | fps ) |
|
override |
|
inline |
|
inline |
void CGameLoop::PauseAsync | ( | ) |
void CGameLoop::SetSpeed | ( | double | speedFactor | ) |
void CGameLoop::Start | ( | ) |
void CGameLoop::Stop | ( | ) |