mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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 {
|
||||
public:
|
||||
// std::atomic is not copyable - always initialize uncached
|
||||
IgnoreNodeCache() {}
|
||||
IgnoreNodeCache(const IgnoreNodeCache& other) {}
|
||||
|
||||
void cache(bool shouldIgnore);
|
||||
bool isCached();
|
||||
bool shouldIgnore();
|
||||
|
||||
private:
|
||||
// tbb::atomic supports copy-ctor
|
||||
tbb::atomic<bool> _isCached { false };
|
||||
std::atomic<bool> _isCached { false };
|
||||
bool _shouldIgnore { false };
|
||||
};
|
||||
struct IgnoreNodeCacheHasher { std::size_t operator()(const QUuid& key) const { return qHash(key); } };
|
||||
|
|
Loading…
Reference in a new issue