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

Side by Side Diff: chrome/common/service_process_util_posix.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 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 "chrome/common/service_process_util_posix.h" 5 #include "chrome/common/service_process_util_posix.h"
6 6
7 #include "base/basictypes.h" 7 #include <string.h>
8
8 #include "base/bind.h" 9 #include "base/bind.h"
9 #include "base/location.h" 10 #include "base/location.h"
10 #include "base/posix/eintr_wrapper.h" 11 #include "base/posix/eintr_wrapper.h"
11 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
12 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "build/build_config.h"
13 #include "chrome/common/multi_process_lock.h" 15 #include "chrome/common/multi_process_lock.h"
14 16
15 namespace { 17 namespace {
16 int g_signal_socket = -1; 18 int g_signal_socket = -1;
17 } 19 }
18 20
19 // Attempts to take a lock named |name|. If |waiting| is true then this will 21 // Attempts to take a lock named |name|. If |waiting| is true then this will
20 // make multiple attempts to acquire the lock. 22 // make multiple attempts to acquire the lock.
21 // Caller is responsible for ownership of the MultiProcessLock. 23 // Caller is responsible for ownership of the MultiProcessLock.
22 MultiProcessLock* TakeNamedLock(const std::string& name, bool waiting) { 24 MultiProcessLock* TakeNamedLock(const std::string& name, bool waiting) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 signal_ready.Wait(); 189 signal_ready.Wait();
188 return success; 190 return success;
189 } 191 }
190 192
191 void ServiceProcessState::TearDownState() { 193 void ServiceProcessState::TearDownState() {
192 if (state_) { 194 if (state_) {
193 state_->Release(); 195 state_->Release();
194 state_ = NULL; 196 state_ = NULL;
195 } 197 }
196 } 198 }
OLDNEW
« no previous file with comments | « chrome/common/service_process_util_posix.h ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698