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

Side by Side Diff: sandbox/src/broker_services.cc

Issue 2741003: Rename Chrome threads to use a "Cr" prefix. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 6 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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "sandbox/src/broker_services.h" 5 #include "sandbox/src/broker_services.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/platform_thread.h" 8 #include "base/platform_thread.h"
9 #include "sandbox/src/sandbox_policy_base.h" 9 #include "sandbox/src/sandbox_policy_base.h"
10 #include "sandbox/src/sandbox.h" 10 #include "sandbox/src/sandbox.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 // The worker thread stays in a loop waiting for asynchronous notifications 133 // The worker thread stays in a loop waiting for asynchronous notifications
134 // from the job objects. Right now we only care about knowing when the last 134 // from the job objects. Right now we only care about knowing when the last
135 // process on a job terminates, but in general this is the place to tell 135 // process on a job terminates, but in general this is the place to tell
136 // the policy about events. 136 // the policy about events.
137 DWORD WINAPI BrokerServicesBase::TargetEventsThread(PVOID param) { 137 DWORD WINAPI BrokerServicesBase::TargetEventsThread(PVOID param) {
138 if (NULL == param) 138 if (NULL == param)
139 return 1; 139 return 1;
140 140
141 PlatformThread::SetName("BrokerEventThread"); 141 PlatformThread::SetName("BrokerEvent");
142 142
143 BrokerServicesBase* broker = reinterpret_cast<BrokerServicesBase*>(param); 143 BrokerServicesBase* broker = reinterpret_cast<BrokerServicesBase*>(param);
144 HANDLE port = broker->job_port_; 144 HANDLE port = broker->job_port_;
145 HANDLE no_targets = broker->no_targets_; 145 HANDLE no_targets = broker->no_targets_;
146 146
147 int target_counter = 0; 147 int target_counter = 0;
148 ::ResetEvent(no_targets); 148 ::ResetEvent(no_targets);
149 149
150 while (true) { 150 while (true) {
151 DWORD events = 0; 151 DWORD events = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 return SBOX_ALL_OK; 306 return SBOX_ALL_OK;
307 } 307 }
308 308
309 309
310 ResultCode BrokerServicesBase::WaitForAllTargets() { 310 ResultCode BrokerServicesBase::WaitForAllTargets() {
311 ::WaitForSingleObject(no_targets_, INFINITE); 311 ::WaitForSingleObject(no_targets_, INFINITE);
312 return SBOX_ALL_OK; 312 return SBOX_ALL_OK;
313 } 313 }
314 314
315 } // namespace sandbox 315 } // namespace sandbox
OLDNEW
« chrome/utility/utility_main.cc ('K') | « media/filters/video_renderer_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698