Skip to content

Commit

Permalink
restore original API for Lock since we can't use typedef to unique_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
kdt3rd authored and nickrasmussen committed Aug 8, 2018
1 parent 846fe64 commit e7fc225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IlmBase/IlmThread/IlmThreadMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ class ILMTHREAD_EXPORT Lock
{
public:

Lock (Mutex& m, bool autoLock = true):
_mutex (m), _locked (false)
Lock (const Mutex& m, bool autoLock = true):
_mutex (const_cast<Mutex &>(m)), _locked (false)
{
if (autoLock)
{
Expand Down

0 comments on commit e7fc225

Please sign in to comment.