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, bool recursive=true)
 Default constructor.
 ~Mutex ()
 Destructor.
 operator handle_type ()
 Casting operator.

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,
bool recursive = true )
explicit

Default constructor.

Parameters
nameMutex name.
recursiveTrue to create a recursive mutex which the default.

◆ ~Mutex()

sf::Mutex::~Mutex ( )

Destructor.

Member Function Documentation

◆ operator handle_type()

sf::Mutex::operator handle_type ( )
inline

Casting operator.

Casting operator.

◆ Condition

friend class Condition
friend

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