Luanti 5.16.0-dev
Loading...
Searching...
No Matches
MeshUpdateWorkerThread Class Reference

#include <mesh_generator_thread.h>

Inheritance diagram for MeshUpdateWorkerThread:
Collaboration diagram for MeshUpdateWorkerThread:

Public Member Functions

 MeshUpdateWorkerThread (Client *client, MeshUpdateQueue *queue_in, MeshUpdateManager *manager)
Public Member Functions inherited from UpdateThread
 UpdateThread (const std::string &name)
 ~UpdateThread ()=default
void deferUpdate ()
void stop ()
void * run ()
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)

Protected Member Functions

virtual void doUpdate ()

Private Attributes

Clientm_client
MeshUpdateQueuem_queue_in
MeshUpdateManagerm_manager
int m_generation_interval

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

◆ MeshUpdateWorkerThread()

MeshUpdateWorkerThread::MeshUpdateWorkerThread ( Client * client,
MeshUpdateQueue * queue_in,
MeshUpdateManager * manager )

References UpdateThread::UpdateThread(), g_settings, m_client, m_generation_interval, m_manager, m_queue_in, and rangelim().

Here is the call graph for this function:

Member Function Documentation

◆ doUpdate()

Member Data Documentation

◆ m_client

Client* MeshUpdateWorkerThread::m_client
private

Referenced by MeshUpdateWorkerThread(), and doUpdate().

◆ m_generation_interval

int MeshUpdateWorkerThread::m_generation_interval
private

Referenced by MeshUpdateWorkerThread(), and doUpdate().

◆ m_manager

MeshUpdateManager* MeshUpdateWorkerThread::m_manager
private

Referenced by MeshUpdateWorkerThread(), and doUpdate().

◆ m_queue_in

MeshUpdateQueue* MeshUpdateWorkerThread::m_queue_in
private

Referenced by MeshUpdateWorkerThread(), and doUpdate().


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