riot::mutex Class Reference

C++11 complient implementation of mutex, uses the time point implemented in our chrono replacement instead of the specified one. More...

Detailed Description

See also

Definition at line 43 of file mutex.hpp.

#include <riot/mutex.hpp>

Public Types

using native_handle_type = mutex_t *
 The native handle type used by the mutex.

Public Member Functions

void lock ()
 Lock the mutex.
bool try_lock () noexcept
 Try to lock the mutex. More...
void unlock () noexcept
 Unlock the mutex.
native_handle_type native_handle ()
 Provides access to the native handle. More...

Member Function Documentation

◆ native_handle()

native_handle_type riot::mutex::native_handle ( )
The native handle of the mutex.

Definition at line 71 of file mutex.hpp.

◆ try_lock()

bool riot::mutex::try_lock ( )
true if the mutex was locked, false otherwise.

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