Cuberite
A lightweight, fast and extensible game server for Minecraft
|
The server tick thread takes care of the players who aren't yet spawned in a world. More...
Public Member Functions | |
cTickThread (cServer &a_Server) | |
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 | |
cServer & | m_Server |
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 |
The server tick thread takes care of the players who aren't yet spawned in a world.
|
private |
cServer::cTickThread::cTickThread | ( | cServer & | a_Server | ) |
Definition at line 67 of file Server.cpp.
|
overrideprotectedvirtual |
This function, overloaded by the descendants, is called in the new thread.
Implements cIsThread.
Definition at line 77 of file Server.cpp.