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

Unified Diff: runtime/bin/file.h

Issue 2050413002: Adds blocking file locks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update docs and CHANGELOG Created 4 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
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 2c153bc040d1efd75885c7bf90849ebd9ee94313..6b22793ec5a45626ca3d73e83ebb36fa766b2865 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -81,7 +81,9 @@ class File : public ReferenceCounted<File> {
kLockUnlock = 0,
kLockShared = 1,
kLockExclusive = 2,
- kLockMax = 2
+ kLockBlockingShared = 3,
+ kLockBlockingExclusive = 4,
+ kLockMax = 4
};
intptr_t GetFD();
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/file_android.cc » ('j') | sdk/lib/io/file.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698