aboutsummaryrefslogtreecommitdiff
path: root/src/core/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/defs.h')
-rw-r--r--src/core/defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index ff36cb3f..abb340bc 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -56,6 +56,13 @@ typedef struct {
size_t iov_len;
} nni_iov;
+// Notify descriptor.
+typedef struct {
+ int sn_wfd; // written to in order to flag an event
+ int sn_rfd; // read from in order to clear an event
+ int sn_init;
+} nni_notifyfd;
+
// Some default timing things.
#define NNI_TIME_NEVER ((nni_time) -1)
#define NNI_TIME_ZERO ((nni_time) 0)