11 #include <boost/shared_ptr.hpp>
12 #include <boost/unordered_map.hpp>
13 #include <boost/unordered_set.hpp>
14 #include <tbb/spin_mutex.h>
20 : myBoundingSphere(boundingSphere)
21 , myOriginalBoundingSphere(boundingSphere)
22 , myFilename(filename)
51 unsigned int numTriangles,
53 : myBoundingInfo(boundingInfo)
54 , myLastUsed(lastUsed)
55 , myNumTriangles(numTriangles)
56 , myPendingRemoval(false)
67 tbb::spin_mutex::scoped_lock lock(myMutex);
68 if (lastUsed > myLastUsed)
70 myLastUsed = lastUsed;
76 tbb::spin_mutex::scoped_lock lock(myMutex);
91 boost::hash<DtNodeBoundingInfo*> hasher;
92 return hasher(p.get());