4 #ifndef __FRIOS_POSIX_THREADS_MUTEX_ATTR_HPP__
5 #define __FRIOS_POSIX_THREADS_MUTEX_ATTR_HPP__
43 int fail = pthread_mutexattr_init(&_attr);
49 : _attr(std::move(tmp._attr))
56 pthread_mutexattr_destroy(&_attr);
65 #endif // include guard
Exception class for attribute initialization errors.
Definition: mutex_attr.hpp:30
Base class for all POSIX exceptions.
Definition: error.hpp:14
mutex_attr(mutex_attr &&tmp)
Mutex attributes are movable.
Definition: mutex_attr.hpp:48
mutex_attr(void)
Default construction.
Definition: mutex_attr.hpp:41
Wrapper around POSIX mutexes.
Definition: mutex.hpp:21
Utility for ensuring uniqueness of a variable.
Declaration of exception classes for POSIX errors.
~mutex_attr(void)
Destructor releases any resources related to the attributes.
Definition: mutex_attr.hpp:53
error(int error_code)
Construction from POSIX error code.
Definition: error.hpp:26
Wrapper around POSIX condition variable attributes.
Definition: mutex_attr.hpp:18