Skip to content

Commit

Permalink
Updated example usage of global mutex and engine access to reflect th…
Browse files Browse the repository at this point in the history
…e TBB types.
  • Loading branch information
dbs4261 committed Sep 23, 2024
1 parent 31484e5 commit 81b9bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/open3d/utility/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> 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();
Expand Down

0 comments on commit 81b9bb3

Please sign in to comment.