#include <Locks.h>
Public Member Functions | |
CopyLockInt (SharedMutex &destinationMutex, SharedMutex &sourceMutex) | |
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.
sptk::CopyLockInt::CopyLockInt | ( | SharedMutex & | destinationMutex, |
SharedMutex & | sourceMutex | ||
) |
Constructor Locks both mutexes.
destinationMutex | Destination mutex |
sourceMutex | Source mutex |