aboutsummaryrefslogtreecommitdiff
path: root/src/core/defs.h
diff options
context:
space:
mode:
authorwangha <68215275+wanghaEMQ@users.noreply.github.com>2021-07-07 06:35:12 +0800
committerGitHub <noreply@github.com>2021-07-06 15:35:12 -0700
commitf37a72f3697125092baa510f26d2e2f9f0b854e0 (patch)
tree4bf1210da8d7e286d164e6389c2f7d4dcfedf4cb /src/core/defs.h
parentf9fa485df941c9336c49fa5be4f9346754218128 (diff)
downloadnng-f37a72f3697125092baa510f26d2e2f9f0b854e0.tar.gz
nng-f37a72f3697125092baa510f26d2e2f9f0b854e0.tar.bz2
nng-f37a72f3697125092baa510f26d2e2f9f0b854e0.zip
Turn aio expire queue from nni list to array for efficiency. (#1449)
Diffstat (limited to 'src/core/defs.h')
-rw-r--r--src/core/defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index 1dffdad0..a313c248 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -175,4 +175,9 @@ typedef nni_type nni_opt_type;
// NNI_MAX_HEADER_SIZE is our header size.
#define NNI_MAX_HEADER_SIZE ((NNI_MAX_MAX_TTL + 1) * sizeof(uint32_t))
+// NNI_EXPIRE_Q_SIZE is the default size of aio expire queue
+#ifndef NNI_EXPIRE_Q_SIZE
+#define NNI_EXPIRE_Q_SIZE 256
+#endif
+
#endif // CORE_DEFS_H