Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: base/synchronization/condition_variable_posix.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/synchronization/cancellation_flag.cc ('k') | base/synchronization/lock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/synchronization/condition_variable.h" 5 #include <pthread.h>
6 6 #include <stddef.h>
7 #include <errno.h> 7 #include <sys/_structs.h>
8 #include <sys/errno.h>
8 #include <sys/time.h> 9 #include <sys/time.h>
9 10
11 #include "base/basictypes.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/synchronization/condition_variable.h"
11 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/synchronization/lock_impl.h"
12 #include "base/time.h" 16 #include "base/time.h"
13 17
14 namespace base { 18 namespace base {
15 19
16 ConditionVariable::ConditionVariable(Lock* user_lock) 20 ConditionVariable::ConditionVariable(Lock* user_lock)
17 : user_mutex_(user_lock->lock_.os_lock()) 21 : user_mutex_(user_lock->lock_.os_lock())
18 #if !defined(NDEBUG) 22 #if !defined(NDEBUG)
19 , user_lock_(user_lock) 23 , user_lock_(user_lock)
20 #endif 24 #endif
21 { 25 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int rv = pthread_cond_broadcast(&condition_); 72 int rv = pthread_cond_broadcast(&condition_);
69 DCHECK(rv == 0); 73 DCHECK(rv == 0);
70 } 74 }
71 75
72 void ConditionVariable::Signal() { 76 void ConditionVariable::Signal() {
73 int rv = pthread_cond_signal(&condition_); 77 int rv = pthread_cond_signal(&condition_);
74 DCHECK(rv == 0); 78 DCHECK(rv == 0);
75 } 79 }
76 80
77 } // namespace base 81 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/cancellation_flag.cc ('k') | base/synchronization/lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698