PLCnext API Documentation 25.0.2.69
Public Member Functions | List of all members
Arp::System::Commons::Threading::LockGuard Class Reference

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.
 
LockGuardoperator= (const LockGuard &arg)=delete
 Assignment operator.
 
 ~LockGuard (void)
 Destructs this instance and releases the lock.
 

Detailed Description

Simple lock guard, acquiring lock on construction and release it on destruction.

Constructor & Destructor Documentation

◆ LockGuard()

Arp::System::Commons::Threading::LockGuard::LockGuard ( Mutex mutex)

Constructs an LockGuard instance and acquires the assgned lock.

Parameters
mutexInstance of mutex to lock.

The documentation for this class was generated from the following files: