Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Faro::MainThread Class Reference

#include <MainThread.hpp>

Inheritance diagram for Faro::MainThread:
Faro::IThreadInterface

Public Member Functions

String GetThreadId () override
 
int Run ()
 
void AddTask (ThreadTask task)
 Schedule the supplied task to be executed ont this thread.
 

Static Public Attributes

static String id = "MainThread"
 

Protected Member Functions

void ThreadInit () override
 Executed while starting the thread.
 
void ThreadUpdate () override
 Executed while the thread is active.
 
void ThreadDestroy () override
 Executed when the thread is being stopped.
 
void RunTasks ()
 Executed any pending tasks.
 
void RegisterThread ()
 
void UnregisterThread ()
 

Member Function Documentation

◆ AddTask()

void Faro::IThreadInterface::AddTask ( ThreadTask  task)
inherited

Schedule the supplied task to be executed ont this thread.

Parameters
taskTask function to execute

◆ GetThreadId()

String Faro::MainThread::GetThreadId ( )
inlineoverridevirtual

◆ RegisterThread()

void Faro::IThreadInterface::RegisterThread ( )
protectedinherited

◆ Run()

int Faro::MainThread::Run ( )

◆ RunTasks()

void Faro::IThreadInterface::RunTasks ( )
protectedinherited

Executed any pending tasks.

◆ ThreadDestroy()

void Faro::MainThread::ThreadDestroy ( )
inlineoverrideprotectedvirtual

Executed when the thread is being stopped.

Implements Faro::IThreadInterface.

◆ ThreadInit()

void Faro::MainThread::ThreadInit ( )
inlineoverrideprotectedvirtual

Executed while starting the thread.

Implements Faro::IThreadInterface.

◆ ThreadUpdate()

void Faro::MainThread::ThreadUpdate ( )
inlineoverrideprotectedvirtual

Executed while the thread is active.

Implements Faro::IThreadInterface.

◆ UnregisterThread()

void Faro::IThreadInterface::UnregisterThread ( )
protectedinherited

Member Data Documentation

◆ id

String Faro::MainThread::id = "MainThread"
static

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