summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
commit07c007af57501dc656b94476cbca41234dc077d6 (patch)
treeb86403c9dd959e22fb383e4321d050afae7c996c /src/nxt_event_engine.h
parentd4e3951c4de0d17db943ea4a6ee1c9f570979358 (diff)
downloadunit-07c007af57501dc656b94476cbca41234dc077d6.tar.gz
unit-07c007af57501dc656b94476cbca41234dc077d6.tar.bz2
Event engine memory cache refactored.
Diffstat (limited to 'src/nxt_event_engine.h')
-rw-r--r--src/nxt_event_engine.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h
index 365d9e89..0c349f7e 100644
--- a/src/nxt_event_engine.h
+++ b/src/nxt_event_engine.h
@@ -514,10 +514,12 @@ NXT_EXPORT void nxt_event_engine_post(nxt_event_engine_t *engine,
NXT_EXPORT void nxt_event_engine_signal(nxt_event_engine_t *engine,
nxt_uint_t signo);
-void *nxt_event_engine_mem_alloc(nxt_event_engine_t *engine, uint8_t *slot,
+#define NXT_EVENT_ENGINE_NO_MEM_HINT 255
+
+void *nxt_event_engine_mem_alloc(nxt_event_engine_t *engine, uint8_t *hint,
size_t size);
-void nxt_event_engine_mem_free(nxt_event_engine_t *engine, uint8_t *slot,
- void *p);
+void nxt_event_engine_mem_free(nxt_event_engine_t *engine, uint8_t hint,
+ void *p, size_t size);
nxt_inline nxt_event_engine_t *