Merge pull request #8496 from olejniczak/master

#8492 constexpr defaulted default constructor of WrappedMutex
This commit is contained in:
Matt Fowles Kulukundis 2021-04-14 16:39:23 -04:00 committed by GitHub
commit d7deb5e36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.