From 2e88cebbad4dffa375b2d1f92c1ff2850effe3c2 Mon Sep 17 00:00:00 2001 From: Reece Date: Sun, 23 Apr 2023 20:01:30 +0100 Subject: [PATCH] [+] added soo shorthand test for thread primitives --- Aurora/ROXTL | 2 +- Tests/Public/2. Hello Threading/Main.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Aurora/ROXTL b/Aurora/ROXTL index b61015a..8a2beae 160000 --- a/Aurora/ROXTL +++ b/Aurora/ROXTL @@ -1 +1 @@ -Subproject commit b61015a6a5fabbdc28f3f4229344c5437d0c26a4 +Subproject commit 8a2beae2a35d64e5c73df376ffc1c51e04d8098c diff --git a/Tests/Public/2. Hello Threading/Main.cpp b/Tests/Public/2. Hello Threading/Main.cpp index 258178f..86e0f1b 100644 --- a/Tests/Public/2. Hello Threading/Main.cpp +++ b/Tests/Public/2. Hello Threading/Main.cpp @@ -67,6 +67,19 @@ TEST(Allocationless, SOO) #endif } + +TEST(Allocationless, SOOShorthand) +{ + AuThreadPrimitives::ConditionMutex condMutex; + AuThreadPrimitives::ConditionVariable condVariable(AuUnsafeRaiiToShared(condMutex.AsPointer())); + AuThreadPrimitives::Mutex mutex; + AuThreadPrimitives::Event event(false, true, false); + AuThreadPrimitives::Semaphore semaphore; + AuThreadPrimitives::CriticalSection cs; + AuThreadPrimitives::RWLock rwLock; + AuThreadPrimitives::RWRenterableLock rwLock2; +} + /** * @brief Single threaded mutex lock test (rentrant mutexes are called critical sections in this subsystem) */