Index: base/threading/simple_thread.cc |
diff --git a/base/threading/simple_thread.cc b/base/threading/simple_thread.cc |
index 7059ceab76661428a3a4e9f7eb124e524b162ebe..6c64a17d6ab2fea1ec792715ad4697adcc21bd94 100644 |
--- a/base/threading/simple_thread.cc |
+++ b/base/threading/simple_thread.cc |
@@ -12,15 +12,24 @@ |
namespace base { |
SimpleThread::SimpleThread(const std::string& name_prefix) |
- : name_prefix_(name_prefix), name_(name_prefix), |
- thread_(), event_(true, false), tid_(0), joined_(false) { |
-} |
+ : name_prefix_(name_prefix), |
+ name_(name_prefix), |
+ thread_(), |
+ event_(WaitableEvent::ResetPolicy::MANUAL, |
+ WaitableEvent::InitialState::NOT_SIGNALED), |
+ tid_(0), |
+ joined_(false) {} |
SimpleThread::SimpleThread(const std::string& name_prefix, |
const Options& options) |
- : name_prefix_(name_prefix), name_(name_prefix), options_(options), |
- thread_(), event_(true, false), tid_(0), joined_(false) { |
-} |
+ : name_prefix_(name_prefix), |
+ name_(name_prefix), |
+ options_(options), |
+ thread_(), |
+ event_(WaitableEvent::ResetPolicy::MANUAL, |
+ WaitableEvent::InitialState::NOT_SIGNALED), |
+ tid_(0), |
+ joined_(false) {} |
SimpleThread::~SimpleThread() { |
DCHECK(HasBeenStarted()) << "SimpleThread was never started."; |
@@ -93,8 +102,8 @@ DelegateSimpleThreadPool::DelegateSimpleThreadPool( |
int num_threads) |
: name_prefix_(name_prefix), |
num_threads_(num_threads), |
- dry_(true, false) { |
-} |
+ dry_(WaitableEvent::ResetPolicy::MANUAL, |
+ WaitableEvent::InitialState::NOT_SIGNALED) {} |
DelegateSimpleThreadPool::~DelegateSimpleThreadPool() { |
DCHECK(threads_.empty()); |