#include <Locks.h>
Public Member Functions | |
CompareLockInt (SharedMutex &lock1, SharedMutex &lock2) | |
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.
sptk::CompareLockInt::CompareLockInt | ( | SharedMutex & | lock1, |
SharedMutex & | lock2 | ||
) |
Constructor Locks both mutexes.
lock1 | First object mutex |
lock2 | Second object mutex |