Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | List of all members
cRankManager::cMassChangeLock Class Reference

Acquire this lock to perform mass changes. More...

#include <RankManager.h>

Collaboration diagram for cRankManager::cMassChangeLock:
Collaboration graph
[legend]

Public Member Functions

 cMassChangeLock (cRankManager &a_RankManager)
 
 ~cMassChangeLock ()
 

Protected Attributes

cCSLock m_Lock
 
SQLite::Transaction m_Transaction
 

Detailed Description

Acquire this lock to perform mass changes.

Improves performance by wrapping everything into a transaction. Makes sure that no other thread is accessing the DB.

Definition at line 30 of file RankManager.h.

Constructor & Destructor Documentation

◆ cMassChangeLock()

cRankManager::cMassChangeLock::cMassChangeLock ( cRankManager a_RankManager)
inline

Definition at line 33 of file RankManager.h.

◆ ~cMassChangeLock()

cRankManager::cMassChangeLock::~cMassChangeLock ( )
inline

Definition at line 39 of file RankManager.h.

Member Data Documentation

◆ m_Lock

cCSLock cRankManager::cMassChangeLock::m_Lock
protected

Definition at line 45 of file RankManager.h.

◆ m_Transaction

SQLite::Transaction cRankManager::cMassChangeLock::m_Transaction
protected

Definition at line 46 of file RankManager.h.


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