#include "Stroika/Foundation/StroikaPreComp.h"#include "Stroika/Foundation/Debug/AssertExternallySynchronizedChecker.h"Go to the source code of this file.
Namespaces | |
| namespace | Stroika::Foundation |
Typedefs | |
| using | Stroika::Foundation::Debug::AssertExternallySynchronizedMutex = AssertExternallySynchronizedChecker |
| DEPRECATED alias - use AssertExternallySynchronizedChecker. | |
DEPRECATED backward-compatibility header. Since Stroika v3.0d24, this class is called Debug::AssertExternallySynchronizedChecker and lives in AssertExternallySynchronizedChecker.h. Include that instead; this header exists only so existing code keeps building, and will be removed.
WHY THE RENAME: it was never a mutex. It does not lock, it does not block, and it does not make anything thread safe - lock () asserts that no other thread is currently in a conflicting access and then returns. Calling it a 'Mutex' invited exactly the wrong reading of the ~1200 places that declare a ReadContext or WriteContext, ie "this code is now synchronized" rather than "assert nobody else is here". 'Checker' says what it does. See the class docs in AssertExternallySynchronizedChecker.h.
Definition in file AssertExternallySynchronizedMutex.h.
| using Stroika::Foundation::Debug::AssertExternallySynchronizedMutex = typedef AssertExternallySynchronizedChecker |
DEPRECATED alias - use AssertExternallySynchronizedChecker.
Definition at line 35 of file AssertExternallySynchronizedMutex.h.