struct CCL::Threading::ScopedTryLock

Scoped locking helper for CriticalSection (check ‘success’ after ctor).

#include <threadsync.h>

struct ScopedTryLock
{
    // fields

    CriticalSection& criticalSection;
    bool success;

    // construction

    ScopedTryLock (CriticalSection& criticalSection);
};