37template<
class T,
class U>
55 static std::recursive_mutex mutex;
56 static std::weak_ptr<T>
wlink;
58 std::unique_lock<std::recursive_mutex> lock(mutex);
60 if (
wlink.expired()) {
64 auto link = std::make_shared<T>();
void emitSignal(Args... args)
typename std::enable_if< std::is_base_of< T, U >::value, T >::type enable_if_base_of
About 62.5ms of buffering at 48kHz.
std::shared_ptr< T > getGlobalInstance()
Return a shared pointer on an auto-generated global instance of class T.
static constexpr size_t SIZEBUF