19 #ifndef MINLIB_ESP32_COUNTING_LOCK_
20 #define MINLIB_ESP32_COUNTING_LOCK_
33 template <
class TLockType>
47 if(bLocked)
lock(timeout);
71 virtual int lock(
unsigned int timeout) {
Definition: mn_clock.hpp:34
basic_clock(LockType_t &m, bool bLocked, unsigned int timeout)
Definition: mn_clock.hpp:45
virtual int unlock()
Definition: mn_clock.hpp:86
~basic_clock()
Definition: mn_clock.hpp:58
bool is_locked()
Definition: mn_clock.hpp:102
virtual int lock(unsigned int timeout)
Definition: mn_clock.hpp:71
bool is_unlocked()
Definition: mn_clock.hpp:107
void operator=(basic_clock const &)=delete
TLockType LockType_t
Definition: mn_clock.hpp:36
basic_clock(basic_clock const &)=delete
unsigned int m_iLocks
Definition: mn_clock.hpp:121
LockType_t & m_refLockRefObject
Definition: mn_clock.hpp:120
Definition: mn_basic_semaphore.hpp:41
void * m_pSpinlock
Definition: mn_basic_semaphore.hpp:129
#define ERR_SPINLOCK_OK
Definition: mn_error.hpp:74
#define ERR_SPINLOCK_LOCK
Definition: mn_error.hpp:78
Definition: mn_allocator_typetraits.hpp:25