DDraceNetwork Docs
CLockScope Class Reference

#include <lock.h>

Collaboration diagram for CLockScope:
[legend]

Public Member Functions

 CLockScope (CLock &Lock)
 
 ~CLockScope ()
 

Private Attributes

CLockm_Lock
 

Detailed Description

RAII-style wrapper for owning a CLock.

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

Constructor & Destructor Documentation

◆ CLockScope()

CLockScope::CLockScope ( CLock Lock)
inlineexplicit

◆ ~CLockScope()

CLockScope::~CLockScope ( )
inline

Member Data Documentation

◆ m_Lock

CLock& CLockScope::m_Lock
private

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