MLBookProc 1.0
 
Loading...
Searching...
No Matches
OmpLockGuard Class Reference

The OmpLockGuard class. More...

#include <OmpLockGuard.h>

Public Member Functions

 OmpLockGuard (omp_lock_t &omp_mtx)
 OmpLockGuard constructor.
 
virtual ~OmpLockGuard ()
 OmpLockGuard destructor.
 

Detailed Description

The OmpLockGuard class.

Auxiliary class. Locks omp_lock_t variable on creation and unlocks it on destruction.

Constructor & Destructor Documentation

◆ OmpLockGuard()

OmpLockGuard::OmpLockGuard ( omp_lock_t & omp_mtx)

OmpLockGuard constructor.

Warning
omp_mtx must be initialized (see omp_init_lock).
Parameters
omp_mtxomp_lock_t variable.