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

Unified Diff: runtime/bin/process.h

Issue 18080010: Remove static mutexes/monitors from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index c0d8b8b7472bc4d818b6f758995e977bee5e82a6..8e82f394aa7d8eac25b69d262f1cb36937508708 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -38,12 +38,12 @@ class Process {
static void TerminateExitCodeHandler();
static int GlobalExitCode() {
- MutexLocker ml(&global_exit_code_mutex_);
+ MutexLocker ml(global_exit_code_mutex_);
return global_exit_code_;
}
static void SetGlobalExitCode(int exit_code) {
- MutexLocker ml(&global_exit_code_mutex_);
+ MutexLocker ml(global_exit_code_mutex_);
global_exit_code_ = exit_code;
}
@@ -56,7 +56,7 @@ class Process {
private:
static int global_exit_code_;
- static dart::Mutex global_exit_code_mutex_;
+ static dart::Mutex* global_exit_code_mutex_;
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Process);
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698