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

Unified Diff: runtime/bin/process_android.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.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_android.cc
===================================================================
--- runtime/bin/process_android.cc (revision 39229)
+++ runtime/bin/process_android.cc (working copy)
@@ -105,12 +105,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
@@ -133,7 +133,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);
}
@@ -160,7 +160,7 @@
monitor_->Notify();
while (!terminate_done_) {
- monitor_->Wait(dart::Monitor::kNoTimeout);
+ monitor_->Wait(Monitor::kNoTimeout);
}
}
@@ -174,7 +174,7 @@
{
MonitorLocker locker(monitor_);
while (running_ && process_count_ == 0) {
- monitor_->Wait(dart::Monitor::kNoTimeout);
+ monitor_->Wait(Monitor::kNoTimeout);
}
if (!running_) {
terminate_done_ = true;
@@ -220,14 +220,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.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698