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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_html5fs.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_html5fs.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h
index d2e1b083ee44bda1408f215bcbaeb400efe538b3..ff104bdbafb2bb23a098b95aa1f159b31daf7f5a 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h
@@ -10,6 +10,7 @@
#include "nacl_io/mount.h"
#include "nacl_io/pepper_interface.h"
#include "nacl_io/typed_mount_factory.h"
+#include "sdk_util/simple_lock.h"
class MountNode;
@@ -39,7 +40,9 @@ class MountHtml5Fs : public Mount {
PP_Resource filesystem_resource_;
bool filesystem_open_has_result_; // protected by lock_.
Error filesystem_open_error_; // protected by lock_.
+
pthread_cond_t filesystem_open_cond_;
+ SimpleLock filesysem_open_lock_;
friend class TypedMountFactory<MountHtml5Fs>;
};

Powered by Google App Engine
This is Rietveld 408576698