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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node.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.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node.cc b/native_client_sdk/src/libraries/nacl_io/mount_node.cc
index 424df70e7cf41dee07667be2cba16dba98b10b2d..81a5df451072fb64ca756adde70805ec10bd0510 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node.cc
@@ -59,7 +59,7 @@ Error MountNode::GetDents(size_t offs,
}
Error MountNode::GetStat(struct stat* pstat) {
- AutoLock lock(&lock_);
+ AUTO_LOCK(node_lock_);
memcpy(pstat, &stat_, sizeof(stat_));
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698