Luanti 5.16.0-dev
Loading...
Searching...
No Matches
AtomicTestThread Class Reference
Inheritance diagram for AtomicTestThread:
Collaboration diagram for AtomicTestThread:

Public Member Functions

 AtomicTestThread (std::atomic< u32 > &v, Semaphore &trigger)
Public Member Functions inherited from Thread
 Thread (const std::string &name="")
virtual ~Thread ()
bool start ()
bool stop ()
bool wait ()
bool isCurrentThread () const
bool isRunning () const
bool stopRequested () const
std::thread::id getThreadId () const
bool getReturnValue (void **ret) const
bool bindToProcessor (unsigned int proc_number)
bool setPriority (int prio)

Private Member Functions

void * run ()

Private Attributes

std::atomic< u32 > & val
Semaphoretrigger

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

◆ AtomicTestThread()

AtomicTestThread::AtomicTestThread ( std::atomic< u32 > & v,
Semaphore & trigger )
inline

References Thread::Thread(), trigger, and val.

Here is the call graph for this function:

Member Function Documentation

◆ run()

void * AtomicTestThread::run ( )
inlineprivatevirtual

Implements Thread.

References trigger, and val.

Member Data Documentation

◆ trigger

Semaphore& AtomicTestThread::trigger
private

Referenced by AtomicTestThread(), and run().

◆ val

std::atomic<u32>& AtomicTestThread::val
private

Referenced by AtomicTestThread(), and run().


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