PLCnext API Documentation 25.0.2.69
|
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. | |
LockGuard & | operator= (const LockGuard &arg)=delete |
Assignment operator. | |
~LockGuard (void) | |
Destructs this instance and releases the lock. | |
Simple lock guard, acquiring lock on construction and release it on destruction.
Arp::System::Commons::Threading::LockGuard::LockGuard | ( | Mutex & | mutex | ) |
Constructs an LockGuard instance and acquires the assgned lock.
mutex | Instance of mutex to lock. |