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; |
}; |