Skip to content

Commit

Permalink
[core] Added explicit to the Scoped and UniqueLock constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 21, 2022
1 parent 992d816 commit 48d1364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class SRT_ATTR_SCOPED_CAPABILITY ScopedLock
{
public:
SRT_ATTR_ACQUIRE(m)
ScopedLock(Mutex& m);
explicit ScopedLock(Mutex& m);

SRT_ATTR_RELEASE()
~ScopedLock();
Expand All @@ -362,7 +362,7 @@ class SRT_ATTR_SCOPED_CAPABILITY UniqueLock

public:
SRT_ATTR_ACQUIRE(m)
UniqueLock(Mutex &m);
explicit UniqueLock(Mutex &m);

SRT_ATTR_RELEASE()
~UniqueLock();
Expand Down

0 comments on commit 48d1364

Please sign in to comment.