3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 19:15:24 +02:00

Revert 'use tbb::atomic for cp'

This commit is contained in:
Zach Pomerantz 2017-02-07 20:40:06 +00:00
parent 5e9fb17949
commit ee699d3fa6

View file

@ -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); } };