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

Method removeId

src/fl/channels/id_tracker.cpp.hpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool IdTracker::removeId(void* ptr) FL_NOEXCEPT {
49 if (!ptr) {
50 return false;
51 }
52
53 // Lock for thread safety
54 mMutex.lock();
55
56 bool removed = mPointerToId.erase(ptr);
57
58 mMutex.unlock();
59 return removed;
60}
61
62size_t IdTracker::size() FL_NOEXCEPT {
63 // Lock for thread safety

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
eraseMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected