ams: remove TYPED_STORAGE() macro in favor of template
This commit is contained in:
@@ -53,6 +53,6 @@ namespace ams::os::impl {
|
||||
}
|
||||
};
|
||||
|
||||
using InternalConditionVariableStorage = TYPED_STORAGE(InternalConditionVariable);
|
||||
using InternalConditionVariableStorage = util::TypedStorage<InternalConditionVariable>;
|
||||
|
||||
}
|
||||
|
||||
@@ -57,6 +57,6 @@ namespace ams::os::impl {
|
||||
}
|
||||
};
|
||||
|
||||
using InternalCriticalSectionStorage = TYPED_STORAGE(InternalCriticalSection);
|
||||
using InternalCriticalSectionStorage = util::TypedStorage<InternalCriticalSection>;
|
||||
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace ams::os {
|
||||
State_Terminated = 4,
|
||||
};
|
||||
|
||||
TYPED_STORAGE(util::IntrusiveListNode) all_threads_node;
|
||||
util::TypedStorage<util::IntrusiveListNode> all_threads_node;
|
||||
util::TypedStorage<impl::WaitableObjectList, sizeof(util::IntrusiveListNode), alignof(util::IntrusiveListNode)> waitlist;
|
||||
uintptr_t reserved[4];
|
||||
u8 state;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace ams::os {
|
||||
}
|
||||
|
||||
struct TimerEventType {
|
||||
using TimeSpanStorage = TYPED_STORAGE(TimeSpan);
|
||||
using TimeSpanStorage = util::TypedStorage<TimeSpan>;
|
||||
|
||||
enum State {
|
||||
State_NotInitialized = 0,
|
||||
|
||||
Reference in New Issue
Block a user