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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node.h

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.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node.h b/native_client_sdk/src/libraries/nacl_io/mount_node.h
index fb0f14f2c5d177ee0919a2eadf09cfa12ab5b52a..749f348a0aa374e9e2f428c0f743fd7617882edb 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node.h
@@ -12,6 +12,7 @@
#include "sdk_util/ref_object.h"
#include "sdk_util/scoped_ref.h"
+#include "sdk_util/simple_lock.h"
struct dirent;
struct stat;
@@ -96,6 +97,7 @@ class MountNode : public RefObject {
protected:
struct stat stat_;
+ SimpleLock node_lock_;
// We use a pointer directly to avoid cycles in the ref count.
// TODO(noelallen) We should change this so it's unnecessary for the node

Powered by Google App Engine
This is Rietveld 408576698