From 81b9bb3d9178d56edfaefd8d7dd59b6e45a82bfa Mon Sep 17 00:00:00 2001 From: Daniel Simon Date: Mon, 23 Sep 2024 11:36:09 -0700 Subject: [PATCH] Updated example usage of global mutex and engine access to reflect the TBB types. --- cpp/open3d/utility/Random.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/open3d/utility/Random.h b/cpp/open3d/utility/Random.h index 9445c03666b..1ea135a7e50 100644 --- a/cpp/open3d/utility/Random.h +++ b/cpp/open3d/utility/Random.h @@ -29,8 +29,8 @@ void Seed(const int seed); /// /// { /// // Put the lock and the call to the engine in the same scope. -/// std::lock_guard lock(*utility::random::GetMutex()); -/// std::shuffle(vals.begin(), vals.end(), *utility::random::GetEngine()); +/// tbb::spin_mutex::scoped_lock lock(utility::random::GetMutex()); +/// std::shuffle(vals.begin(), vals.end(), utility::random::GetEngine()); /// } /// ``` std::mt19937& GetEngine();