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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/work_queue.h

Issue 2836853003: scheduler: Use PLATFORM_EXPORT instead of BLINK_PLATFORM_EXPORT (Closed)
Patch Set: Rebased Created 3 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 11 matching lines...) Expand all
22 22
23 // This class keeps track of immediate and delayed tasks which are due to run 23 // This class keeps track of immediate and delayed tasks which are due to run
24 // now. It interfaces deeply with WorkQueueSets which keeps track of which queue 24 // now. It interfaces deeply with WorkQueueSets which keeps track of which queue
25 // (with a given priority) contains the oldest task. 25 // (with a given priority) contains the oldest task.
26 // 26 //
27 // If a fence is inserted, WorkQueue behaves normally up until 27 // If a fence is inserted, WorkQueue behaves normally up until
28 // TakeTaskFromWorkQueue reaches or exceeds the fence. At that point it the 28 // TakeTaskFromWorkQueue reaches or exceeds the fence. At that point it the
29 // API subset used by WorkQueueSets pretends the WorkQueue is empty until the 29 // API subset used by WorkQueueSets pretends the WorkQueue is empty until the
30 // fence is removed. This functionality is a primitive intended for use by 30 // fence is removed. This functionality is a primitive intended for use by
31 // throttling mechanisms. 31 // throttling mechanisms.
32 class BLINK_PLATFORM_EXPORT WorkQueue { 32 class PLATFORM_EXPORT WorkQueue {
33 public: 33 public:
34 enum class QueueType { DELAYED, IMMEDIATE }; 34 enum class QueueType { DELAYED, IMMEDIATE };
35 35
36 WorkQueue(TaskQueueImpl* task_queue, const char* name, QueueType queue_type); 36 WorkQueue(TaskQueueImpl* task_queue, const char* name, QueueType queue_type);
37 ~WorkQueue(); 37 ~WorkQueue();
38 38
39 // Associates this work queue with the given work queue sets. This must be 39 // Associates this work queue with the given work queue sets. This must be
40 // called before any tasks can be inserted into this work queue. 40 // called before any tasks can be inserted into this work queue.
41 void AssignToWorkQueueSets(WorkQueueSets* work_queue_sets); 41 void AssignToWorkQueueSets(WorkQueueSets* work_queue_sets);
42 42
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const QueueType queue_type_; 125 const QueueType queue_type_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(WorkQueue); 127 DISALLOW_COPY_AND_ASSIGN(WorkQueue);
128 }; 128 };
129 129
130 } // namespace internal 130 } // namespace internal
131 } // namespace scheduler 131 } // namespace scheduler
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_ 134 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_WORK_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698