tipc/sm: update more fully for 13.0.0 changes

This commit is contained in:
Michael Scire 2021-10-13 23:50:57 -07:00
parent ca25a884b5
commit 891fa32bf1
10 changed files with 357 additions and 309 deletions

View file

@ -44,12 +44,12 @@ namespace ams::tipc {
util::TypedStorage<T> storage;
};
private:
os::SdkMutex m_mutex;
Entry m_entries[N];
os::SdkMutex m_mutex;
public:
constexpr ALWAYS_INLINE SlabAllocator() : m_entries() { /* ... */ }
constexpr ALWAYS_INLINE SlabAllocator() : m_entries(), m_mutex() { /* ... */ }
ServiceObjectBase *Allocate() {
T *Allocate() {
std::scoped_lock lk(m_mutex);
for (size_t i = 0; i < N; ++i) {