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

Side by Side Diff: base/threading/sequenced_worker_pool.cc

Issue 2502973002: No-op CL for TSAN. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | 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) 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 #include "base/threading/sequenced_worker_pool.h" 5 #include "base/threading/sequenced_worker_pool.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #endif 47 #endif
48 48
49 #if !defined(OS_NACL) 49 #if !defined(OS_NACL)
50 #include "base/metrics/histogram_macros.h" 50 #include "base/metrics/histogram_macros.h"
51 #endif 51 #endif
52 52
53 namespace base { 53 namespace base {
54 54
55 namespace { 55 namespace {
56 56
57 // Comment :)
58
57 // An enum representing the state of all pools. Any given non-test process 59 // An enum representing the state of all pools. Any given non-test process
58 // should only ever transition from NONE_ACTIVE to one of the active states. 60 // should only ever transition from NONE_ACTIVE to one of the active states.
59 // Transitions between actives states are unexpected. The 61 // Transitions between actives states are unexpected. The
60 // REDIRECTED_TO_TASK_SCHEDULER transition occurs when 62 // REDIRECTED_TO_TASK_SCHEDULER transition occurs when
61 // RedirectToTaskSchedulerForProcess() is called. The WORKER_CREATED transition 63 // RedirectToTaskSchedulerForProcess() is called. The WORKER_CREATED transition
62 // occurs when a Worker needs to be created because the first task was posted 64 // occurs when a Worker needs to be created because the first task was posted
63 // and the state is still NONE_ACTIVE. In a test process, a transition to 65 // and the state is still NONE_ACTIVE. In a test process, a transition to
64 // NONE_ACTIVE occurs when ResetRedirectToTaskSchedulerForProcessForTesting() is 66 // NONE_ACTIVE occurs when ResetRedirectToTaskSchedulerForProcessForTesting() is
65 // called. 67 // called.
66 // 68 //
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 bool SequencedWorkerPool::IsShutdownInProgress() { 1618 bool SequencedWorkerPool::IsShutdownInProgress() {
1617 return inner_->IsShutdownInProgress(); 1619 return inner_->IsShutdownInProgress();
1618 } 1620 }
1619 1621
1620 bool SequencedWorkerPool::IsRunningSequenceOnCurrentThread( 1622 bool SequencedWorkerPool::IsRunningSequenceOnCurrentThread(
1621 SequenceToken sequence_token) const { 1623 SequenceToken sequence_token) const {
1622 return inner_->IsRunningSequenceOnCurrentThread(sequence_token); 1624 return inner_->IsRunningSequenceOnCurrentThread(sequence_token);
1623 } 1625 }
1624 1626
1625 } // namespace base 1627 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698