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

Method init_sentinel

src/fl/stl/list.h:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 memory_resource* mResource = default_memory_resource();
35
36 void init_sentinel() {
37 mHead = static_cast<Node*>(mResource->allocate(sizeof(Node)));
38 mHead->next = mHead;
39 mHead->prev = mHead;
40 mSize = 0;
41 }
42
43 void destroy_sentinel() {
44 if (mHead) {

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected