Made some changes to naming conventions for shared memory
This commit is contained in:
parent
10cc67a25a
commit
dff9c193d3
1 changed files with 10 additions and 0 deletions
|
@ -67,3 +67,13 @@ static const char * DBG_LVL_LIST[] = {"NONE", "FAIL", "ERROR", "WARN", "INFO", "
|
||||||
|
|
||||||
/// The position from where on stream data pages are switched over to the next page.
|
/// The position from where on stream data pages are switched over to the next page.
|
||||||
#define FLIP_DATA_PAGE_SIZE 8 * 1024 * 1024
|
#define FLIP_DATA_PAGE_SIZE 8 * 1024 * 1024
|
||||||
|
|
||||||
|
#define SHM_STREAM_INDEX "MstSTRM%s" //%s stream name
|
||||||
|
#define SHM_TRACK_META "MstTRAK%s#%lu" //%s stream name, %lu track ID
|
||||||
|
#define SHM_TRACK_INDEX "MstTRID%s#%lu" //%s stream name, %lu track ID
|
||||||
|
#define SHM_TRACK_DATA "MstDATA%s#%lu@%lu" //%s stream name, %lu track ID, %lu page #
|
||||||
|
#define SHM_STATISTICS "MstSTAT"
|
||||||
|
#define SHM_USERS "MstUSER%s" //%s stream name
|
||||||
|
#define SEM_LIVE "MstLIVE%s" //%s stream name
|
||||||
|
#define NAME_BUFFER_SIZE 200 //char buffer size for snprintf'ing shm filenames
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue