My Project
osl::LightMutex Class Reference

#include <lightMutex.h>

Classes

class  unlockable_lock
 requirement: thread local More...

Public Types

typedef LightScopedLock< LightMutexscoped_lock

Public Member Functions

 LightMutex ()
bool tryLock ()
bool waitLock (int counter)
void lock ()
void unlock ()

Private Member Functions

 LightMutex (const LightMutex &)=delete
LightMutexoperator= (const LightMutex &)=delete

Private Attributes

volatile int data

Detailed Description

Definition at line 51 of file lightMutex.h.

Member Typedef Documentation

◆ scoped_lock

Definition at line 57 of file lightMutex.h.

Constructor & Destructor Documentation

◆ LightMutex() [1/2]

osl::misc::LightMutex::LightMutex ( const LightMutex & )
privatedelete

◆ LightMutex() [2/2]

osl::misc::LightMutex::LightMutex ( )
inline

Definition at line 59 of file lightMutex.h.

Member Function Documentation

◆ lock()

void osl::misc::LightMutex::lock ( )
inline

Definition at line 84 of file lightMutex.h.

◆ operator=()

LightMutex & osl::misc::LightMutex::operator= ( const LightMutex & )
privatedelete

◆ tryLock()

bool osl::misc::LightMutex::tryLock ( )
inline

Definition at line 60 of file lightMutex.h.

◆ unlock()

void osl::misc::LightMutex::unlock ( )
inline

Definition at line 93 of file lightMutex.h.

◆ waitLock()

bool osl::misc::LightMutex::waitLock ( int counter)
inline

Definition at line 74 of file lightMutex.h.

Member Data Documentation

◆ data

volatile int osl::misc::LightMutex::data
private

Definition at line 55 of file lightMutex.h.


The documentation for this class was generated from the following file: