Skip to content

Commit

Permalink
unique_lock -> lock_guard
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Jan 17, 2024
1 parent 2611799 commit 8c68c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/modules/IcePy/ObjectAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ adapterWaitForHold(ObjectAdapterObject* self, PyObject* args)
//
if(PyThread_get_thread_ident() == _mainThreadId)
{
std::unique_lock lock(*self->holdMutex);
std::lock_guard lock(*self->holdMutex);

if(!self->held)
{
Expand Down

0 comments on commit 8c68c89

Please sign in to comment.