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

Side by Side Diff: base/simple_thread.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « base/process_util_linux.cc ('k') | base/simple_thread_unittest.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/simple_thread.h" 5 #include "base/simple_thread.h"
6 6
7 #include "base/waitable_event.h" 7 #include "base/waitable_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/platform_thread.h" 9 #include "base/platform_thread.h"
10 #include "base/string_util.h" 10 #include "base/string_number_conversions.h"
11 11
12 namespace base { 12 namespace base {
13 13
14 void SimpleThread::Start() { 14 void SimpleThread::Start() {
15 DCHECK(!HasBeenStarted()) << "Tried to Start a thread multiple times."; 15 DCHECK(!HasBeenStarted()) << "Tried to Start a thread multiple times.";
16 bool success = PlatformThread::Create(options_.stack_size(), this, &thread_); 16 bool success = PlatformThread::Create(options_.stack_size(), this, &thread_);
17 CHECK(success); 17 CHECK(success);
18 event_.Wait(); // Wait for the thread to complete initialization. 18 event_.Wait(); // Wait for the thread to complete initialization.
19 } 19 }
20 20
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // A NULL delegate pointer signals us to quit. 110 // A NULL delegate pointer signals us to quit.
111 if (!work) 111 if (!work)
112 break; 112 break;
113 113
114 work->Run(); 114 work->Run();
115 } 115 }
116 } 116 }
117 117
118 } // namespace base 118 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_linux.cc ('k') | base/simple_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698