template struct Core::Threads::TScopedTryLock

Helper to try lock/unlock within scope, check ‘success’ after ctor.

#include <corethread.h>

template <class TLock>
struct TScopedTryLock
{
    // fields

    TLock* lock;
    bool success;

    // construction

    TScopedTryLock(TLock& _lock);
    TScopedTryLock(TLock* lock);
};