PLCnext API Documentation
22.9.0.33
|
Simple lock guard, acquiring lock on construction and release it on destruction. More...
#include <LockGuard.hpp>
Public Member Functions | |
LockGuard (Mutex &mutex) | |
Constructs an LockGuard instance and acquires the assgned lock. More... | |
LockGuard (const LockGuard &arg)=delete | |
Copy constructor. More... | |
LockGuard & | operator= (const LockGuard &arg)=delete |
Assignment operator. More... | |
~LockGuard (void) | |
Destructs this instance and releases the lock. More... | |
Simple lock guard, acquiring lock on construction and release it on destruction.
|
inline |
Constructs an LockGuard instance and acquires the assgned lock.
mutex | Instance of mutex to lock. |
|
delete |
Copy constructor.
|
inline |
Destructs this instance and releases the lock.
Assignment operator.