#include <mutex>
Inheritance diagram for os::estd::timed_mutex:Public Types | |
| using | native_handle_type = native_type * |
Public Member Functions | |
| timed_mutex ()=default | |
| timed_mutex (const timed_mutex &)=delete | |
| ~timed_mutex ()=default | |
| void | lock () |
| native_handle_type | native_handle () |
| timed_mutex & | operator= (const timed_mutex &)=delete |
| bool | try_lock () |
| template<typename Rep_T , typename Period_T > | |
| bool | try_lock_for (const std::chrono::duration< Rep_T, Period_T > &rel_time) |
| template<typename Clock_T , typename Duration_T > | |
| bool | try_lock_until (const std::chrono::time_point< Clock_T, Duration_T > &abs_time) |
| void | unlock () |
Protected Attributes | |
| native_type | nm_ |
Private Types | |
| using | native_type = os::rtos::mutex |
|
inherited |
|
privateinherited |
|
default |
|
default |
|
delete |
|
inherited |
Definition at line 29 of file mutex.cpp.
References os::estd::__throw_cmsis_error(), os::rtos::mutex::lock(), os::estd::mutex::nm_, and os::rtos::result::ok.
|
inlineinherited |
|
delete |
|
inherited |
Definition at line 41 of file mutex.cpp.
References os::estd::__throw_cmsis_error(), os::estd::mutex::nm_, os::rtos::result::ok, and os::rtos::mutex::try_lock().
| bool os::estd::timed_mutex::try_lock_for | ( | const std::chrono::duration< Rep_T, Period_T > & | rel_time | ) |
Definition at line 215 of file mutex.
References os::estd::__throw_system_error(), os::estd::mutex::nm_, os::rtos::result::ok, and os::rtos::mutex::timed_lock().
Referenced by try_lock_until().
| bool os::estd::timed_mutex::try_lock_until | ( | const std::chrono::time_point< Clock_T, Duration_T > & | abs_time | ) |
Definition at line 245 of file mutex.
References clock(), and try_lock_for().
|
inherited |
Definition at line 60 of file mutex.cpp.
References os::estd::__throw_cmsis_error(), os::estd::mutex::nm_, os::rtos::result::ok, and os::rtos::mutex::unlock().
|
protectedinherited |
Definition at line 89 of file mutex.
Referenced by os::estd::mutex::lock(), os::estd::mutex::native_handle(), os::estd::mutex::try_lock(), try_lock_for(), and os::estd::mutex::unlock().