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
381 B

#pragma once
extern "C" {
#include "cmsis_os.h"
}
namespace iflytop {
using namespace std;
class zmutex {
public:
SemaphoreHandle_t recursiveMutex;
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