You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
404 B

#pragma once
#include "osbasic_h.hpp"
namespace iflytop {
using namespace std;
class zmutex {
public:
#ifdef PC_IFLYTOP_ENABLE_OS
SemaphoreHandle_t recursiveMutex;
#endif
public:
zmutex();
~zmutex();
void init();
bool isInit();
void lock();
void unlock();
};
class zlock_guard {
zmutex& m_mutex;
public:
zlock_guard(zmutex& mutex);
~zlock_guard();
};
} // namespace iflytop