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

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

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove event friends, rename EventListenerPoll Created 7 years, 3 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 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_;

Powered by Google App Engine
This is Rietveld 408576698