class CCL::Threading::CriticalSection

Overview

Userspace lock. More…

#include <threadsync.h>

class CriticalSection: public CCL::Threading::SyncObject
{
public:
    // methods

    bool tryEnter ();
    void enter ();
    void leave ();
};

Detailed Documentation

Userspace lock.

Methods

bool tryEnter ()

Attempt to enter critical section without blocking.

void enter ()

Wait for ownership of critical section.

void leave ()

Release ownership of critical section.