Files
pico-examples/hello_world/usb/wrappers/Mutex.cpp
2023-12-19 01:38:32 -06:00

17 lines
174 B
C++

#include "Mutex.h"
Mutex::Mutex()
{
mutex_init(&_mutex);
}
void Mutex::lock()
{
mutex_enter_blocking(&_mutex);
}
void Mutex::unlock()
{
mutex_exit(&_mutex);
}