QGIS API Documentation
3.43.0-Master (c67cf405802)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
qgsreadwritelocker.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsreadwritelocker.cpp
3
-------------------------
4
begin : September 2018
5
copyright : (C) 2018 by Matthias Kuhn
6
email : matthias@opengis.ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSREADWRITELOCKER_H
19
#define QGSREADWRITELOCKER_H
20
21
#include "qgis_core.h"
22
23
#include <QReadWriteLock>
24
40
class
CORE_EXPORT
QgsReadWriteLocker
41
{
42
public
:
43
47
enum
Mode
48
{
49
Read
,
50
Write
,
51
Unlocked
52
};
47
enum
Mode
{
…
};
53
57
QgsReadWriteLocker
( QReadWriteLock &lock, Mode mode );
58
63
void
changeMode( Mode mode );
64
69
void
unlock();
70
71
~QgsReadWriteLocker
();
72
73
private
:
74
#ifdef SIP_RUN
75
QgsReadWriteLocker
&operator=(
const
QgsReadWriteLocker
& );
76
#endif
77
78
QReadWriteLock &mLock;
79
Mode mMode = Unlocked;
80
};
40
class
CORE_EXPORT
QgsReadWriteLocker
{
…
};
81
82
#endif
// QGSREADWRITELOCKER_H
QgsReadWriteLocker
A convenience class that simplifies locking and unlocking QReadWriteLocks.
Definition
qgsreadwritelocker.h:41
QgsReadWriteLocker::Mode
Mode
A QReadWriteLock can be in 3 different modes, read, write or unlocked.
Definition
qgsreadwritelocker.h:48
QgsReadWriteLocker::Write
@ Write
Lock for write.
Definition
qgsreadwritelocker.h:50
QgsReadWriteLocker::Read
@ Read
Lock for read.
Definition
qgsreadwritelocker.h:49
Generated on Tue Apr 8 2025 15:57:40 for QGIS API Documentation by
1.9.8