4 #include "bformatdec.h"
7 #include "front_stablizer.h"
12 al::FlexArray
<ContextBase
*> DeviceBase::sEmptyContextArray
{0u};
15 DeviceBase::DeviceBase(DeviceType type
) : Type
{type
}, mContexts
{&sEmptyContextArray
}
19 DeviceBase::~DeviceBase()
21 auto *oldarray
= mContexts
.exchange(nullptr, std::memory_order_relaxed
);
22 if(oldarray
!= &sEmptyContextArray
) delete oldarray
;