ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::PThreadMutex Class Reference

RAII pthread mutex wrapper. More...

#include <pthread_wrapper.hpp>

Public Member Functions

 PThreadMutex (pthread_mutexattr_t const *attr)
 PThreadMutex (PThreadMutex const &)=delete
auto operator= (PThreadMutex const &) -> PThreadMutex &=delete
void lock ()
auto try_lock () -> bool
void unlock ()
auto native_handle () -> pthread_mutex_t *

Detailed Description

RAII pthread mutex wrapper.

Definition at line 408 of file pthread_wrapper.hpp.

Constructor & Destructor Documentation

◆ PThreadMutex() [1/2]

threadschedule::PThreadMutex::PThreadMutex ( )
inline

Definition at line 411 of file pthread_wrapper.hpp.

◆ PThreadMutex() [2/2]

threadschedule::PThreadMutex::PThreadMutex ( pthread_mutexattr_t const * attr)
inlineexplicit

Definition at line 419 of file pthread_wrapper.hpp.

◆ ~PThreadMutex()

threadschedule::PThreadMutex::~PThreadMutex ( )
inline

Definition at line 427 of file pthread_wrapper.hpp.

Member Function Documentation

◆ lock()

void threadschedule::PThreadMutex::lock ( )
inline

Definition at line 435 of file pthread_wrapper.hpp.

◆ native_handle()

auto threadschedule::PThreadMutex::native_handle ( ) -> pthread_mutex_t*
inline

Definition at line 456 of file pthread_wrapper.hpp.

◆ try_lock()

auto threadschedule::PThreadMutex::try_lock ( ) -> bool
inline

Definition at line 443 of file pthread_wrapper.hpp.

◆ unlock()

void threadschedule::PThreadMutex::unlock ( )
inline

Definition at line 448 of file pthread_wrapper.hpp.


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