Skip to content

Commit

Permalink
Merge pull request #8496 from olejniczak/master
Browse files Browse the repository at this point in the history
#8492 constexpr defaulted default constructor of WrappedMutex
  • Loading branch information
fowles authored Apr 14, 2021
2 parents 68cb69e + 1a371f6 commit d7deb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class CallOnceInitializedMutex {
// mutexes.
class GOOGLE_PROTOBUF_CAPABILITY("mutex") PROTOBUF_EXPORT WrappedMutex {
public:
constexpr WrappedMutex() = default;
constexpr WrappedMutex() {}
void Lock() GOOGLE_PROTOBUF_ACQUIRE() { mu_.lock(); }
void Unlock() GOOGLE_PROTOBUF_RELEASE() { mu_.unlock(); }
// Crash if this Mutex is not held exclusively by this thread.
Expand Down

0 comments on commit d7deb5e

Please sign in to comment.