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

#include <Locks.h>

Public Member Functions

 CompareLockInt (SharedMutex &lock1, SharedMutex &lock2)
 

Detailed Description

Compare lock Useful when there is need to coMPARE one object to another (both locked with shared lock). Locks are released when CompareLockInt leaves scope.

Constructor & Destructor Documentation

◆ CompareLockInt()

sptk::CompareLockInt::CompareLockInt ( SharedMutex &  lock1,
SharedMutex &  lock2 
)

Constructor Locks both mutexes.

Parameters
lock1First object mutex
lock2Second object mutex

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

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