Luanti 5.10.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, v3s16 *camera_offset)
 
- 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 ()
 
bool isRunning ()
 
bool stopRequested ()
 
std::thread::id getThreadId ()
 
bool getReturnValue (void **ret)
 
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
 
v3s16m_camera_offset
 
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,
v3s16 * camera_offset )

References g_settings, Settings::getU16(), m_generation_interval, and rangelim.

+ Here is the call graph for this function:

Member Function Documentation

◆ doUpdate()

Member Data Documentation

◆ m_camera_offset

v3s16* MeshUpdateWorkerThread::m_camera_offset
private

Referenced by doUpdate().

◆ m_client

Client* MeshUpdateWorkerThread::m_client
private

Referenced by doUpdate().

◆ m_generation_interval

int MeshUpdateWorkerThread::m_generation_interval
private

Referenced by MeshUpdateWorkerThread(), and doUpdate().

◆ m_manager

MeshUpdateManager* MeshUpdateWorkerThread::m_manager
private

Referenced by doUpdate().

◆ m_queue_in

MeshUpdateQueue* MeshUpdateWorkerThread::m_queue_in
private

Referenced by doUpdate().


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