STTNet
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
stt::file::FileThreadLock Struct Reference

A structure that records the relationship between files and threads. More...

#include <sttnet_English.h>

Public Member Functions

 FileThreadLock (const std::string &loc, const int &threads)
 The constructor of this structure. More...
 

Public Attributes

std::string loc
 The file path. More...
 
int threads
 Records how many threads are currently using the file. More...
 
std::mutex lock
 The lock for this file. More...
 

Detailed Description

A structure that records the relationship between files and threads.

Note
Used in subsequent classes to ensure thread safety.

Constructor & Destructor Documentation

stt::file::FileThreadLock::FileThreadLock ( const std::string &  loc,
const int &  threads 
)
inline

The constructor of this structure.

Parameters
locThe path used to construct the structure object.
threadsThe number of threads using the file used to construct the structure object.

Member Data Documentation

std::string stt::file::FileThreadLock::loc

The file path.

std::mutex stt::file::FileThreadLock::lock

The lock for this file.

int stt::file::FileThreadLock::threads

Records how many threads are currently using the file.


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