Remove Windows-specific shared memory implementation

This commit is contained in:
Thulinma 2024-05-02 16:01:05 +02:00
parent e75381ae39
commit 3422b1dbcd
6 changed files with 24 additions and 234 deletions

View file

@ -162,15 +162,8 @@ namespace Mist{
snprintf(pageId, NAME_BUFFER_SIZE, SHM_TRACK_DATA, streamName.c_str(), idx, pageNumber);
std::string pageName(pageId);
IPC::sharedPage toErase;
#ifdef __CYGWIN__
toErase.init(pageName, 26 * 1024 * 1024, false, false);
#else
toErase.init(pageName, tPages.getInt("size", pageIdx), false, false);
#endif
// Set the master flag so that the page will be destroyed once it leaves scope
#if defined(__CYGWIN__) || defined(_WIN32)
IPC::releasePage(pageName);
#endif
toErase.master = true;
// Update the page on the tracks index page if needed
uint64_t firstKeyNum = tPages.getInt(firstKey, pageIdx);

View file

@ -1,6 +1,7 @@
#include <iostream>
#include <mist/shared_memory.h>
#include <mist/util.h>
#include <mist/timing.h>
int main(int argc, char **argv){
Util::redirectLogsIfNeeded();