DDraceNetwork Docs
CLock Class Reference

#include <lock.h>

Public Member Functions

 CLock ()=default
 
void lock ()
 
void unlock ()
 
const CLockoperator! () const
 

Private Attributes

std::mutex m_Mutex
 

Detailed Description

Wrapper for std::mutex.

Remarks
This wrapper is only necessary because the clang thread-safety attributes are not available for std::mutex except when explicitly using libc++.

Constructor & Destructor Documentation

◆ CLock()

CLock::CLock ( )
default

Member Function Documentation

◆ lock()

void CLock::lock ( )
inline

◆ operator!()

const CLock & CLock::operator! ( ) const
inline

◆ unlock()

void CLock::unlock ( )
inline

Member Data Documentation

◆ m_Mutex

std::mutex CLock::m_Mutex
private

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