sptk2 logo
SPTK Home Page
Public Member Functions | List of all members
sptk::CopyLockInt Class Reference

#include <Locks.h>

Public Member Functions

 CopyLockInt (SharedMutex &destinationMutex, SharedMutex &sourceMutex)
 

Detailed Description

Copy lock Useful when there is need to copy one object (locked with shared lock), into another (locked with unique lock). Locks are released when CopyLockInt leaves scope.

Constructor & Destructor Documentation

◆ CopyLockInt()

sptk::CopyLockInt::CopyLockInt ( SharedMutex &  destinationMutex,
SharedMutex &  sourceMutex 
)

Constructor Locks both mutexes.

Parameters
destinationMutexDestination mutex
sourceMutexSource mutex

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

Fri Oct 14 2022 09:58:38: SPTK 5.4.1