modm API documentation
modm::fiber::shared_timed_mutex Class Reference

#include <modm/processing/fiber/shared_mutex.hpp>

Inheritance diagram for modm::fiber::shared_timed_mutex:
modm::fiber::shared_mutex

Public Member Functions

template<typename Rep , typename Period >
bool try_lock_for (std::chrono::duration< Rep, Period > sleep_duration)
 
template<class Clock , class Duration >
bool try_lock_until (std::chrono::time_point< Clock, Duration > sleep_time)
 
template<typename Rep , typename Period >
bool try_lock_shared_for (std::chrono::duration< Rep, Period > sleep_duration)
 
template<class Clock , class Duration >
bool try_lock_shared_until (std::chrono::time_point< Clock, Duration > sleep_time)
 
void lock ()
 
void lock_shared ()
 
bool try_lock ()
 
bool try_lock_shared ()
 
void unlock ()
 
void unlock_shared ()
 

Detailed Description

Implements the std::shared_timed_mutex interface for fibers.

See also
https://en.cppreference.com/w/cpp/thread/shared_timed_mutex

Member Function Documentation

bool modm::fiber::shared_mutex::try_lock ( )
inheritednodiscardinline
Note
This function can be called from an interrupt.
bool modm::fiber::shared_mutex::try_lock_shared ( )
inheritednodiscardinline
Note
This function can be called from an interrupt.
void modm::fiber::shared_mutex::unlock ( )
inheritedinline
Note
This function can be called from an interrupt.
void modm::fiber::shared_mutex::unlock_shared ( )
inheritedinline
Note
This function can be called from an interrupt.

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