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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc

Issue 18644009: [NaCl SDK] Upate atomic ops in nacl_io (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add declartions for newval and oldval Created 7 years, 5 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: native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc b/native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc
index a6bfc9b12bf355376e7b9f3cf2545c8a9f12f443..4592219b30da9ba30f0a1d807efd4d9427195025 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.cc
@@ -155,7 +155,7 @@ Error MountNodeHtml5Fs::GetDents(size_t offs,
}
Error MountNodeHtml5Fs::GetStat(struct stat* stat) {
- AutoLock lock(&lock_);
+ AUTO_LOCK(node_lock_);
PP_FileInfo info;
int32_t result = mount_->ppapi()->GetFileRefInterface()->Query(
@@ -244,7 +244,7 @@ Error MountNodeHtml5Fs::Write(size_t offs,
Error MountNodeHtml5Fs::GetSize(size_t* out_size) {
*out_size = 0;
- AutoLock lock(&lock_);
+ AUTO_LOCK(node_lock_);
PP_FileInfo info;
int32_t result = mount_->ppapi()->GetFileIoInterface()

Powered by Google App Engine
This is Rietveld 408576698