MCPcopy Create free account
hub / github.com/FastLED/FastLED / unlock

Method unlock

src/platforms/esp/32/mutex_esp32.cpp.hpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void MutexESP32::unlock() {
61 FL_ASSERT(mHandle != nullptr, "MutexESP32::unlock() called on null mutex");
62
63 SemaphoreHandle_t handle = static_cast<SemaphoreHandle_t>(mHandle);
64
65 BaseType_t result = xSemaphoreGive(handle);
66
67 FL_ASSERT(result == pdTRUE, "MutexESP32::unlock() failed to release mutex");
68}
69
70bool MutexESP32::try_lock() {
71 if (mHandle == nullptr) {

Callers 2

waitMethod · 0.45
wait_forMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected