mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 07:19:21 +02:00
Revert 'use tbb::atomic for cp'
This commit is contained in:
parent
5e9fb17949
commit
ee699d3fa6
1 changed files with 5 additions and 2 deletions
|
@ -130,13 +130,16 @@ private:
|
||||||
|
|
||||||
class IgnoreNodeCache {
|
class IgnoreNodeCache {
|
||||||
public:
|
public:
|
||||||
|
// std::atomic is not copyable - always initialize uncached
|
||||||
|
IgnoreNodeCache() {}
|
||||||
|
IgnoreNodeCache(const IgnoreNodeCache& other) {}
|
||||||
|
|
||||||
void cache(bool shouldIgnore);
|
void cache(bool shouldIgnore);
|
||||||
bool isCached();
|
bool isCached();
|
||||||
bool shouldIgnore();
|
bool shouldIgnore();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// tbb::atomic supports copy-ctor
|
std::atomic<bool> _isCached { false };
|
||||||
tbb::atomic<bool> _isCached { false };
|
|
||||||
bool _shouldIgnore { false };
|
bool _shouldIgnore { false };
|
||||||
};
|
};
|
||||||
struct IgnoreNodeCacheHasher { std::size_t operator()(const QUuid& key) const { return qHash(key); } };
|
struct IgnoreNodeCacheHasher { std::size_t operator()(const QUuid& key) const { return qHash(key); } };
|
||||||
|
|
Loading…
Reference in a new issue