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

Public Member Functions

 cTickThread (cWorld &a_World)
 
- 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

cWorldm_World
 
- 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 899 of file World.h.

Member Typedef Documentation

◆ Super

Definition at line 902 of file World.h.

Constructor & Destructor Documentation

◆ cTickThread()

cWorld::cTickThread::cTickThread ( cWorld a_World)

Definition at line 98 of file World.cpp.

Member Function Documentation

◆ Execute()

void cWorld::cTickThread::Execute ( void  )
overrideprotectedvirtual

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

Implements cIsThread.

Definition at line 108 of file World.cpp.

Member Data Documentation

◆ m_World

cWorld& cWorld::cTickThread::m_World
protected

Definition at line 909 of file World.h.


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