C++ TargetRTS
Loading...
Searching...
No Matches
RTLock.h
1/*******************************************************************************
2 * Licensed Materials - Property of HCL
3 * (c) Copyright HCL Technologies Ltd. 2025. All Rights Reserved.
4 *******************************************************************************/
5#ifndef __RTLock_h__
6#define __RTLock_h__ included
7
8class RTMutex;
9
27class RTLock {
28public:
29 RTLock(RTMutex& mutex);
30 ~RTLock(void);
31
32 RTLock(const RTLock&) = delete;
33 RTLock& operator=(const RTLock&) = delete;
34
35protected:
36 RTMutex& _mutex;
37};
38
39#endif
Special utility class that allows to protect a piece of code from being accessed by multiple executio...
Definition: RTLock.h:27