Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::Mutex Class Reference

Lightweight intra process thread synchronization. More...

#include <Mutex.h>

Classes

class  Lock
 Locking class for easy locking and unlocking by destructor. More...
 

Public Types

typedef ::pthread_mutex_t * handle_type
 Handle type.
 

Public Member Functions

 Mutex (const char *name=nullptr)
 Default constructor.
 
 ~Mutex ()
 Destructor.
 
 operator handle_type ()
 

Friends

class Condition
 

Detailed Description

Lightweight intra process thread synchronization.

Can only be used with other mutex, and only within the same process.

Member Typedef Documentation

◆ handle_type

typedef ::pthread_mutex_t* sf::Mutex::handle_type

Handle type.

Constructor & Destructor Documentation

◆ Mutex()

sf::Mutex::Mutex ( const char *  name = nullptr)

Default constructor.

◆ ~Mutex()

sf::Mutex::~Mutex ( )

Destructor.

Member Function Documentation

◆ operator handle_type()

sf::Mutex::operator handle_type ( )
inline

Casting operator.

Friends And Related Symbol Documentation

◆ Condition

friend class Condition
friend

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