SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::Mutex Class Reference

#include <ma_osal.h>

Collaboration diagram for ma::Mutex:

Public Member Functions

 Mutex (bool recursive=true) noexcept
 
 ~Mutex () noexcept
 
 operator bool () const
 
bool tryLock (ma_tick_t timeout=Tick::waitForever)
 
bool lock () const
 
bool unlock () const
 
 operator ma_mutex_t * () const
 

Constructor & Destructor Documentation

◆ Mutex()

ma::Mutex::Mutex ( bool  recursive = true)
noexcept

◆ ~Mutex()

ma::Mutex::~Mutex ( )
noexcept

Member Function Documentation

◆ lock()

bool ma::Mutex::lock ( ) const
Here is the caller graph for this function:

◆ operator bool()

ma::Mutex::operator bool ( ) const

◆ operator ma_mutex_t *()

ma::Mutex::operator ma_mutex_t * ( ) const

◆ tryLock()

bool ma::Mutex::tryLock ( ma_tick_t  timeout = Tick::waitForever)

◆ unlock()

bool ma::Mutex::unlock ( ) const
Here is the caller graph for this function: