FastLED 3.10.6
Loading...
Searching...
No Matches

◆ getOrCreate()

SampleImplPtr fl::audio::anonymous_namespace{audio.cpp.hpp}::AudioSamplePool::getOrCreate ( )
inline

Definition at line 48 of file audio.cpp.hpp.

48 {
49 {
50 fl::unique_lock<fl::mutex> lock(mutex);
51 if (!pool.empty()) {
52 SampleImplPtr impl = pool.back();
53 pool.pop_back();
54 return impl;
55 }
56 }
58 }
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

References fl::make_shared(), mutex, and pool.

+ Here is the call graph for this function: