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 (const AString &a_ThreadName)
 
bool IsCurrentThread (void) const
 Returns true if the thread calling this function is the thread contained within this object. More...
 
bool 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...
 
bool Wait (void)
 Waits for the thread to finish. More...
 
virtual ~cIsThread ()
 

Protected Member Functions

virtual void Execute (void) override
 This is the main thread entrypoint. 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

typedef cIsThread super
 

Detailed Description

Definition at line 1090 of file World.h.

Member Typedef Documentation

Definition at line 1093 of file World.h.

Constructor & Destructor Documentation

cWorld::cTickThread::cTickThread ( cWorld a_World)

Definition at line 103 of file World.cpp.

Member Function Documentation

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

This is the main thread entrypoint.

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

Implements cIsThread.

Definition at line 113 of file World.cpp.

Member Data Documentation

cWorld& cWorld::cTickThread::m_World
protected

Definition at line 1098 of file World.h.


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