Skip to content

Commit f78bab3

Browse files
authored
Merge pull request #1291 from Geode-solutions/fix/model-ray-tracing-mutex
fix(BRepRayTracing): migrate from absl::Mutex to std::mutex
2 parents cdee61d + 18c1264 commit f78bab3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/geode/model/helpers/ray_tracing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <geode/model/helpers/ray_tracing.hpp>
2525

26-
#include <absl/synchronization/mutex.h>
26+
#include <mutex>
2727

2828
#include <geode/basic/pimpl_impl.hpp>
2929

@@ -300,7 +300,7 @@ namespace geode
300300
private:
301301
const AABBTree3D& surface_aabb( const Surface3D& surface )
302302
{
303-
absl::MutexLock lock{ mutex_ };
303+
std::lock_guard lock{ mutex_ };
304304
{
305305
const auto it = aabb_trees_.find( surface.id() );
306306
if( it != aabb_trees_.end() )
@@ -317,7 +317,7 @@ namespace geode
317317
private:
318318
const BRep& brep_;
319319
absl::flat_hash_map< uuid, std::unique_ptr< AABBTree3D > > aabb_trees_;
320-
absl::Mutex mutex_;
320+
std::mutex mutex_;
321321
};
322322

323323
BRepRayTracing::BRepRayTracing( const BRep& brep ) : impl_{ brep } {}

0 commit comments

Comments
 (0)