Chromium Code Reviews| 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 661a194bfe0390e581bba027b592d3acdd60aa95..b6f53ed93ef3a114b94a12fdedb717d638f13548 100644 |
| --- a/native_client_sdk/src/libraries/nacl_io/mount_node.h |
| +++ b/native_client_sdk/src/libraries/nacl_io/mount_node.h |
| @@ -26,7 +26,7 @@ typedef sdk_util::ScopedRef<MountNode> ScopedMountNode; |
| // NOTE: The KernelProxy is the only class that should be setting errno. All |
| // other classes should return Error (as defined by nacl_io/error.h). |
| -class MountNode : public EventListener { |
| +class MountNode : public sdk_util::RefObject { |
| protected: |
| explicit MountNode(Mount* mount); |
| virtual ~MountNode(); |
| @@ -37,7 +37,9 @@ class MountNode : public EventListener { |
| virtual void Destroy(); |
| public: |
| - // Declared in EventEmitter. defaults to signalled. |
| + // Returns the emitter for this Node if it has one, if not, assume this |
| + // object can not block. |
| + virtual EventEmitter* GetEventEmitter(); |
| virtual uint32_t GetEventStatus(); |
| // Normal OS operations on a node (file), can be called by the kernel |
| @@ -107,6 +109,7 @@ class MountNode : public EventListener { |
| virtual void Unlink(); |
| protected: |
| + uint32_t state_; |
|
binji
2013/09/12 01:47:57
describe? state_ is pretty generic.
noelallen1
2013/09/12 23:19:03
Done.
|
| struct stat stat_; |
| sdk_util::SimpleLock node_lock_; |