Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
SimpleTestThread Class Reference
+ Inheritance diagram for SimpleTestThread:
+ Collaboration diagram for SimpleTestThread:

Public Member Functions

 SimpleTestThread (unsigned int interval)
 
- Public Member Functions inherited from Thread
 Thread (const std::string &name="")
 
virtual ~Thread ()
 
bool start ()
 
bool stop ()
 
bool wait ()
 
bool isCurrentThread ()
 
bool isRunning ()
 
bool stopRequested ()
 
std::thread::id getThreadId ()
 
bool getReturnValue (void **ret)
 
bool bindToProcessor (unsigned int proc_number)
 
bool setPriority (int prio)
 

Private Member Functions

void * run ()
 

Private Attributes

unsigned int m_interval
 

Additional Inherited Members

- Static Public Member Functions inherited from Thread
static ThreadgetCurrentThread ()
 
static void setName (const std::string &name)
 
static unsigned int getNumberOfProcessors ()
 
- Protected Attributes inherited from Thread
std::string m_name
 

Constructor & Destructor Documentation

◆ SimpleTestThread()

SimpleTestThread::SimpleTestThread ( unsigned int interval)
inline

Member Function Documentation

◆ run()

void * SimpleTestThread::run ( )
inlineprivatevirtual

Implements Thread.

References Thread::isCurrentThread(), m_interval, sleep_ms, and Thread::stopRequested().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_interval

unsigned int SimpleTestThread::m_interval
private

Referenced by run().


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