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

Unified Diff: runtime/bin/process_linux.cc

Issue 471743002: - Make sure that the threads for dart::bin are in the correct namespace. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/process_android.cc ('k') | runtime/bin/process_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_linux.cc
===================================================================
--- runtime/bin/process_linux.cc (revision 39229)
+++ runtime/bin/process_linux.cc (working copy)
@@ -104,12 +104,12 @@
static ProcessInfo* active_processes_;
// Mutex protecting all accesses to the linked list of active
// processes.
- static dart::Mutex* mutex_;
+ static Mutex* mutex_;
};
ProcessInfo* ProcessInfoList::active_processes_ = NULL;
-dart::Mutex* ProcessInfoList::mutex_ = new dart::Mutex();
+Mutex* ProcessInfoList::mutex_ = new Mutex();
// The exit code handler sets up a separate thread which waits for child
@@ -132,7 +132,7 @@
}
// Start thread that handles process exits when wait returns.
- int result = dart::Thread::Start(ExitCodeHandlerEntry, 0);
+ int result = Thread::Start(ExitCodeHandlerEntry, 0);
if (result != 0) {
FATAL1("Failed to start exit code handler worker thread %d", result);
}
@@ -159,7 +159,7 @@
monitor_->Notify();
while (!terminate_done_) {
- monitor_->Wait(dart::Monitor::kNoTimeout);
+ monitor_->Wait(Monitor::kNoTimeout);
}
}
@@ -173,7 +173,7 @@
{
MonitorLocker locker(monitor_);
while (running_ && process_count_ == 0) {
- monitor_->Wait(dart::Monitor::kNoTimeout);
+ monitor_->Wait(Monitor::kNoTimeout);
}
if (!running_) {
terminate_done_ = true;
@@ -219,14 +219,14 @@
static bool terminate_done_;
static int process_count_;
static bool running_;
- static dart::Monitor* monitor_;
+ static Monitor* monitor_;
};
bool ExitCodeHandler::running_ = false;
int ExitCodeHandler::process_count_ = 0;
bool ExitCodeHandler::terminate_done_ = false;
-dart::Monitor* ExitCodeHandler::monitor_ = new dart::Monitor();
+Monitor* ExitCodeHandler::monitor_ = new Monitor();
static void SetChildOsErrorMessage(char** os_error_message) {
« no previous file with comments | « runtime/bin/process_android.cc ('k') | runtime/bin/process_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698