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

Unified Diff: runtime/vm/os_thread.h

Issue 1748953003: - Add assertions in MutexLocker/MonitorLocker to ensure that the code enclosed (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-comments Created 4 years, 10 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/vm/message_handler.cc ('k') | runtime/vm/os_thread_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_thread.h
diff --git a/runtime/vm/os_thread.h b/runtime/vm/os_thread.h
index ce22b2b0511d40ce1f84d95a987648f765508ab9..2ca6a7c8f4743912aa9790b8828506e8e6199bdc 100644
--- a/runtime/vm/os_thread.h
+++ b/runtime/vm/os_thread.h
@@ -267,7 +267,7 @@ class Mutex {
~Mutex();
void Lock();
- bool TryLock();
+ bool TryLock(); // Returns false if lock is busy and locking failed.
void Unlock();
#if defined(DEBUG)
@@ -303,6 +303,7 @@ class Monitor {
Monitor();
~Monitor();
+ bool TryEnter(); // Returns false if lock is busy and locking failed.
void Enter();
void Exit();
« no previous file with comments | « runtime/vm/message_handler.cc ('k') | runtime/vm/os_thread_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698