FastLED 3.9.15
Loading...
Searching...
No Matches

◆ instanceInner()

template<typename T, int N = 0>
static T * fl::SingletonShared< T, N >::instanceInner ( )
inlinestaticprivate

Definition at line 104 of file singleton.h.

104 {
105 // Aligned char buffer storage — never destroyed
107 char data[sizeof(T)];
108 };
109
110 static AlignedStorage storage;
111
112#if FL_HAS_SANITIZER_LSAN
113 __lsan::ScopedDisabler disabler; // Ignore all allocations in this scope
114#endif
115
116 T* ptr = new (&storage.data) T();
117 return ptr;
118 }

References fl::FL_ALIGN_AS_T(), FL_NOEXCEPT, and instanceInner().

Referenced by instance(), and instanceInner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: