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

Side by Side Diff: cc/base/completion_event.h

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_COMPLETION_EVENT_H_ 5 #ifndef CC_BASE_COMPLETION_EVENT_H_
6 #define CC_COMPLETION_EVENT_H_ 6 #define CC_BASE_COMPLETION_EVENT_H_
7 7
8 #include "base/logging.h"
8 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
9 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
10 #include "base/logging.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 // Used for making blocking calls from one thread to another. Use only when 14 // Used for making blocking calls from one thread to another. Use only when
15 // absolutely certain that doing-so will not lead to a deadlock. 15 // absolutely certain that doing-so will not lead to a deadlock.
16 // 16 //
17 // It is safe to destroy this object as soon as wait() returns. 17 // It is safe to destroy this object as soon as wait() returns.
18 class CompletionEvent { 18 class CompletionEvent {
19 public: 19 public:
20 CompletionEvent() 20 CompletionEvent()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 base::WaitableEvent m_event; 57 base::WaitableEvent m_event;
58 #ifndef NDEBUG 58 #ifndef NDEBUG
59 // Used to assert that wait() and signal() are each called exactly once. 59 // Used to assert that wait() and signal() are each called exactly once.
60 bool m_waited; 60 bool m_waited;
61 bool m_signaled; 61 bool m_signaled;
62 #endif 62 #endif
63 }; 63 };
64 64
65 } 65 }
66 66
67 #endif // CC_COMPLETION_EVENT_H_ 67 #endif // CC_BASE_COMPLETION_EVENT_H_
OLDNEW
« no previous file with comments | « cc/base/cc_export.h ('k') | cc/base/float_quad_unittest.cc » ('j') | cc/cc.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698