[+] added soo shorthand test for thread primitives

This commit is contained in:
Reece Wilson 2023-04-23 20:01:30 +01:00
parent edf169138e
commit 2e88cebbad
2 changed files with 14 additions and 1 deletions

@ -1 +1 @@
Subproject commit b61015a6a5fabbdc28f3f4229344c5437d0c26a4 Subproject commit 8a2beae2a35d64e5c73df376ffc1c51e04d8098c

View File

@ -67,6 +67,19 @@ TEST(Allocationless, SOO)
#endif #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) * @brief Single threaded mutex lock test (rentrant mutexes are called critical sections in this subsystem)
*/ */