CellModules
mingw_stdthread::xp::mutex Class Reference

#include <mingw.mutex.h>

Public Types

typedef PCRITICAL_SECTION native_handle_type
 

Public Member Functions

constexpr mutex () noexcept
 
 mutex (const mutex &)=delete
 
mutexoperator= (const mutex &)=delete
 
 ~mutex () noexcept
 
void lock (void)
 
void unlock (void)
 
bool try_lock (void)
 
native_handle_type native_handle (void)
 

Private Attributes

CRITICAL_SECTION mHandle
 
std::atomic_uchar mState
 
_OwnerThread mOwnerThread
 

Friends

class vista::condition_variable
 

Detailed Description

Definition at line 248 of file mingw.mutex.h.

Member Typedef Documentation

◆ native_handle_type

Definition at line 258 of file mingw.mutex.h.

Constructor & Destructor Documentation

◆ mutex() [1/2]

constexpr mingw_stdthread::xp::mutex::mutex ( )
inlineconstexprnoexcept

Definition at line 259 of file mingw.mutex.h.

◆ mutex() [2/2]

mingw_stdthread::xp::mutex::mutex ( const mutex )
delete

◆ ~mutex()

mingw_stdthread::xp::mutex::~mutex ( )
inlinenoexcept

Definition at line 266 of file mingw.mutex.h.

Member Function Documentation

◆ lock()

void mingw_stdthread::xp::mutex::lock ( void  )
inline

Definition at line 270 of file mingw.mutex.h.

◆ native_handle()

native_handle_type mingw_stdthread::xp::mutex::native_handle ( void  )
inline

Definition at line 319 of file mingw.mutex.h.

◆ operator=()

mutex & mingw_stdthread::xp::mutex::operator= ( const mutex )
delete

◆ try_lock()

bool mingw_stdthread::xp::mutex::try_lock ( void  )
inline

Definition at line 299 of file mingw.mutex.h.

◆ unlock()

void mingw_stdthread::xp::mutex::unlock ( void  )
inline

Definition at line 291 of file mingw.mutex.h.

Friends And Related Function Documentation

◆ vista::condition_variable

friend class vista::condition_variable
friend

Definition at line 254 of file mingw.mutex.h.

Member Data Documentation

◆ mHandle

CRITICAL_SECTION mingw_stdthread::xp::mutex::mHandle
private

Definition at line 250 of file mingw.mutex.h.

◆ mOwnerThread

_OwnerThread mingw_stdthread::xp::mutex::mOwnerThread
private

Definition at line 255 of file mingw.mutex.h.

◆ mState

std::atomic_uchar mingw_stdthread::xp::mutex::mState
private

Definition at line 251 of file mingw.mutex.h.


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