Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoColorProfileStorage.h
Show All 37 Lines | |||||
38 | * 2) KoColorProfileStorage::Private::lock | 38 | * 2) KoColorProfileStorage::Private::lock | ||
39 | * | 39 | * | ||
40 | * It means that we can take any single lock if we need it separately, but | 40 | * It means that we can take any single lock if we need it separately, but | ||
41 | * if we need to take both of them, we should always take them is a specified | 41 | * if we need to take both of them, we should always take them is a specified | ||
42 | * order. | 42 | * order. | ||
43 | * | 43 | * | ||
44 | * Encapsulation of the profile accesses inside a separate class lets us | 44 | * Encapsulation of the profile accesses inside a separate class lets us | ||
45 | * follow this rule without even thinking of it. KoColorProfileStorage just | 45 | * follow this rule without even thinking of it. KoColorProfileStorage just | ||
46 | * *never* calls any method of the registry, therefore lock order inverion is | 46 | * *never* calls any method of the registry, therefore lock order inversion is | ||
47 | * not possible, | 47 | * not possible, | ||
48 | */ | 48 | */ | ||
49 | class KoColorProfileStorage | 49 | class KoColorProfileStorage | ||
50 | { | 50 | { | ||
51 | public: | 51 | public: | ||
52 | KoColorProfileStorage(); | 52 | KoColorProfileStorage(); | ||
53 | ~KoColorProfileStorage(); | 53 | ~KoColorProfileStorage(); | ||
54 | 54 | | |||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |