Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ModIPCStore Struct Reference

#include <server.h>

+ Collaboration diagram for ModIPCStore:

Public Member Functions

 ModIPCStore ()=default
 
 ~ModIPCStore ()
 
void signal ()
 

Public Attributes

std::shared_mutex mutex
 RW lock for this entire structure.
 
std::condition_variable_any condvar
 Signalled on any changes to the map contents.
 
std::unordered_map< std::string, std::unique_ptr< PackedValue > > map
 Map storing the data.
 

Constructor & Destructor Documentation

◆ ModIPCStore()

ModIPCStore::ModIPCStore ( )
default

◆ ~ModIPCStore()

ModIPCStore::~ModIPCStore ( )

References errorstream, FUNCTION_NAME, and mutex.

Member Function Documentation

◆ signal()

void ModIPCStore::signal ( )
inline
Note
Should be called without holding the lock.

References condvar.

Member Data Documentation

◆ condvar

std::condition_variable_any ModIPCStore::condvar

Signalled on any changes to the map contents.

Referenced by signal().

◆ map

std::unordered_map<std::string, std::unique_ptr<PackedValue> > ModIPCStore::map

Map storing the data.

Note
Do not store nil data in this map, instead remove the whole key.

◆ mutex

std::shared_mutex ModIPCStore::mutex

RW lock for this entire structure.

Referenced by ~ModIPCStore().


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