From dfbc5f3644b0ae85b522c9fe8c5a612cfd48868a Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 2 Oct 2013 07:49:45 -0700 Subject: [PATCH] atomic_flag needs to have public methods. --- base/mutex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/mutex.h b/base/mutex.h index 9c0b92e9f2..9191ace08e 100644 --- a/base/mutex.h +++ b/base/mutex.h @@ -43,10 +43,11 @@ struct atomic_flag_init { static const atomic_flag_init NATIVE_ATOMIC_FLAG_INIT; class atomic_flag { +public: atomic_flag() { } - atomic_flag(atomic_flag_init &v) : value(0) { + atomic_flag(const atomic_flag_init &v) : value(0) { } void clear() {