Very Simple Cross-Platform Library
Public Member Functions | List of all members
hu::varadiistvan::scpl::Mutex Class Reference

#include <Mutex.h>

Public Member Functions

void lock ()
 
bool tryLock ()
 
void unlock ()
 

Detailed Description

A mutual exclusion device.

Definition at line 44 of file Mutex.h.

Member Function Documentation

◆ lock()

void hu::varadiistvan::scpl::Mutex::lock ( )

Lock the mutex. If the mutex is locked by another thread, the caller one waits until the other thread releases the mutex.

◆ tryLock()

bool hu::varadiistvan::scpl::Mutex::tryLock ( )

Try to lock the mutex. If the mutex is locked by another thread, this function returns false immediately. Otherwise it locks the mutex and returns true.

◆ unlock()

void hu::varadiistvan::scpl::Mutex::unlock ( )

Unlock the mutex.


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