Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

A lock as a scoped frontend for a mutex. More...

#include <thread.hpp>

Public Member Functions

 Lock (Mutex &m0)
 Enter lock.
 
 ~Lock (void)
 Leave lock.
 

Detailed Description

A lock as a scoped frontend for a mutex.

Definition at line 191 of file thread.hpp.

Constructor & Destructor Documentation

◆ Lock()

Gecode::Support::Lock::Lock ( Mutex & m0)
inline

Enter lock.

Definition at line 95 of file thread.hpp.

◆ ~Lock()

Gecode::Support::Lock::~Lock ( void )
inline

Leave lock.

Definition at line 99 of file thread.hpp.


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