Commit cef9da17 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Make Dispatch use VSL_Check to handle SHM ptrs.

This allows Dispatch to run completely in SHM with no copying for most
cases, also when transactions come in multiple batches.
parent 63619877
......@@ -89,6 +89,8 @@ struct VSL_head {
#define VSL_BACKEND(ptr) (((ptr)[1]) & VSL_BACKENDMARKER)
#define VSL_DATA(ptr) ((char*)((ptr)+2))
#define VSL_CDATA(ptr) ((const char*)((ptr)+2))
#define VSL_BATCHLEN(ptr) ((ptr)[1])
#define VSL_BATCHID(ptr) (VSL_ID((ptr) + 2))
#define VSL_ENDMARKER (((uint32_t)SLT__Reserved << 24) | 0x454545) /* "EEE" */
#define VSL_WRAPMARKER (((uint32_t)SLT__Reserved << 24) | 0x575757) /* "WWW" */
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment