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

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

Issue 13951014: [NaCl SDK] nacl_io: opening a node immediately after mounting would fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 7 years, 8 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1e532b5ac25a17c94da37f4a4fc679ca1a400356..a6633be8af76b3b6993f2c0009868db916f4e024 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_html5fs.h
@@ -27,14 +27,16 @@ class MountHtml5Fs: public Mount {
virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi);
virtual void Destroy();
- bool IsFilesystemOpen();
+ int32_t BlockUntilFilesystemOpen();
private:
static void FilesystemOpenCallbackThunk(void* user_data, int32_t result);
void FilesystemOpenCallback(int32_t result);
PP_Resource filesystem_resource_;
- bool filesystem_open_; // protected by lock_.
+ bool filesystem_open_has_result_; // protected by lock_.
+ int32_t filesystem_open_result_; // protected by lock_.
+ pthread_cond_t filesystem_open_cond_;
friend class Mount;
};
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698