OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_MAC_LIBDISPATCH_SEQUENCED_TASK_RUNNER_H_ | 5 #ifndef BASE_MAC_LIBDISPATCH_TASK_RUNNER_H_ |
6 #define BASE_MAC_LIBDISPATCH_SEQUENCED_TASK_RUNNER_H_ | 6 #define BASE_MAC_LIBDISPATCH_TASK_RUNNER_H_ |
7 | 7 |
8 #include <dispatch/dispatch.h> | 8 #include <dispatch/dispatch.h> |
9 | 9 |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 namespace mac { | 14 namespace mac { |
15 | 15 |
16 // This is an implementation of the TaskRunner interface that runs closures on | 16 // This is an implementation of the TaskRunner interface that runs closures on |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 dispatch_queue_t queue_; | 71 dispatch_queue_t queue_; |
72 | 72 |
73 // The event on which Shutdown waits until Finalizer runs. | 73 // The event on which Shutdown waits until Finalizer runs. |
74 base::WaitableEvent queue_finalized_; | 74 base::WaitableEvent queue_finalized_; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace mac | 77 } // namespace mac |
78 } // namespace base | 78 } // namespace base |
79 | 79 |
80 #endif // BASE_MAC_LIBDISPATCH_SEQUENCED_TASK_RUNNER_H_ | 80 #endif // BASE_MAC_LIBDISPATCH_TASK_RUNNER_H_ |
OLD | NEW |