Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
cMojangAPI::cUpdateThread Class Reference
Inheritance diagram for cMojangAPI::cUpdateThread:
Inheritance graph
[legend]
Collaboration diagram for cMojangAPI::cUpdateThread:
Collaboration graph
[legend]

Public Member Functions

 cUpdateThread (cMojangAPI &a_MojangAPI)
 
virtual ~cUpdateThread () override
 
- Public Member Functions inherited from cIsThread
 cIsThread (AString &&a_ThreadName)
 
bool IsCurrentThread (void) const
 Returns true if the thread calling this function is the thread contained within this object. More...
 
void Start (void)
 Starts the thread; returns without waiting for the actual start. More...
 
void Stop (void)
 Signals the thread to terminate and waits until it's finished. More...
 
virtual ~cIsThread ()
 

Protected Member Functions

virtual void Execute (void) override
 This function, overloaded by the descendants, is called in the new thread. More...
 

Protected Attributes

cEvent m_evtNotify
 The event used for notifying that the thread should terminate, as well as timing. More...
 
cMojangAPIm_MojangAPI
 The cMojangAPI instance to update. More...
 
- Protected Attributes inherited from cIsThread
std::atomic< bool > m_ShouldTerminate
 The overriden Execute() method should check this value periodically and terminate if this is true. More...
 

Private Types

using Super = cIsThread
 

Detailed Description

Definition at line 167 of file MojangAPI.cpp.

Member Typedef Documentation

◆ Super

Definition at line 170 of file MojangAPI.cpp.

Constructor & Destructor Documentation

◆ cUpdateThread()

cMojangAPI::cUpdateThread::cUpdateThread ( cMojangAPI a_MojangAPI)
inline

Definition at line 174 of file MojangAPI.cpp.

◆ ~cUpdateThread()

virtual cMojangAPI::cUpdateThread::~cUpdateThread ( )
inlineoverridevirtual

Definition at line 180 of file MojangAPI.cpp.

Member Function Documentation

◆ Execute()

virtual void cMojangAPI::cUpdateThread::Execute ( void  )
inlineoverrideprotectedvirtual

This function, overloaded by the descendants, is called in the new thread.

Implements cIsThread.

Definition at line 200 of file MojangAPI.cpp.

Member Data Documentation

◆ m_evtNotify

cEvent cMojangAPI::cUpdateThread::m_evtNotify
protected

The event used for notifying that the thread should terminate, as well as timing.

Definition at line 196 of file MojangAPI.cpp.

◆ m_MojangAPI

cMojangAPI& cMojangAPI::cUpdateThread::m_MojangAPI
protected

The cMojangAPI instance to update.

Definition at line 193 of file MojangAPI.cpp.


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