MLBookProc
1.1
Loading...
Searching...
No Matches
OmpLockGuard.h
1
/*
2
* Copyright (C) 2025 Yury Bobylev <bobilev_yury@mail.ru>
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the Free
6
* Software Foundation, version 3.
7
*
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License along with
14
* this program. If not, see <https://www.gnu.org/licenses/>.
15
*/
16
#ifndef OMPLOCKGUARD_H
17
#define OMPLOCKGUARD_H
18
19
#include <omp.h>
20
27
class
OmpLockGuard
28
{
29
public
:
37
OmpLockGuard
(omp_lock_t &omp_mtx);
38
42
virtual
~OmpLockGuard
();
43
44
private
:
45
omp_lock_t *omp_mtx_ptr;
46
};
47
48
#endif
// OMPLOCKGUARD_H
OmpLockGuard::~OmpLockGuard
virtual ~OmpLockGuard()
OmpLockGuard destructor.
OmpLockGuard::OmpLockGuard
OmpLockGuard(omp_lock_t &omp_mtx)
OmpLockGuard constructor.
OmpLockGuard.h
Generated by
1.13.2