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

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

Issue 23498015: [NaCl SDK] Support non blocking TCP/UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node.cc b/native_client_sdk/src/libraries/nacl_io/mount_node.cc
index 4a0c0651d9c58f4687da117742509a25f3e777f4..5598c27fdf73c8cc9dae6cadb514eb8e3ebf7f90 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node.cc
@@ -49,13 +49,14 @@ void MountNode::Destroy() {
}
}
-// Declared in EventEmitter, default to regular files which always return
-// a ready of TRUE for read, write, or error.
+EventEmitter* MountNode::GetEventEmitter() { return NULL; }
+
uint32_t MountNode::GetEventStatus() {
- uint32_t val = POLLIN | POLLOUT | POLLERR;
- return val;
-}
+ if (GetEventEmitter())
+ return GetEventEmitter()->GetEventStatus();
+ return POLLIN | POLLOUT;
+}
Error MountNode::FSync() { return 0; }
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_char.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698