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

Side by Side Diff: base/task_scheduler/task_tracker_posix.cc

Issue 2427963002: Support FileDescriptorWatcher in TaskScheduler. (Closed)
Patch Set: CR robliao #23 Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/task_scheduler/task_tracker_posix.h"
6
7 #include <utility>
8
9 #include "base/files/file_descriptor_watcher_posix.h"
10 #include "base/logging.h"
11
12 namespace base {
13 namespace internal {
14
15 TaskTrackerPosix::TaskTrackerPosix(
16 MessageLoopForIO* watch_file_descriptor_message_loop)
17 : watch_file_descriptor_message_loop_(watch_file_descriptor_message_loop) {
18 DCHECK(watch_file_descriptor_message_loop_);
19 }
20
21 TaskTrackerPosix::~TaskTrackerPosix() = default;
22
23 void TaskTrackerPosix::PerformRunTask(std::unique_ptr<Task> task) {
24 FileDescriptorWatcher file_descriptor_watcher(
25 watch_file_descriptor_message_loop_);
26 TaskTracker::PerformRunTask(std::move(task));
gab 2016/10/21 16:10:48 Can we add task_tracker_posix_unittest.cc
fdoray 2016/10/27 13:06:50 Done.
27 }
28
29 } // namespace internal
30 } // namespace base
OLDNEW
« base/task_scheduler/task_tracker.cc ('K') | « base/task_scheduler/task_tracker_posix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698