shared-memory/src/SharedMemory.h

20 lines
510 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef SHARED_MEMORY_H
#define SHARED_MEMORY_H
#include "internal.hpp" //NOLINT
#include <sys/shm.h>
//ID-Speicherbereich
//Größe des Speicherbereichs hier 8MB (8000)
//Shared-Memory-Segment erstellen oder öffnen shmget()
constexpr int Max_Memory_Size (8000 * 512);
void deleteSharedMemory(int s);
void deleteSharedMemory();
void initSharedMemory();
void getConfig();
key_t changedKey();
std::string getAnswerFromUser();
//Config File
#define configFile "../res/config.toml"
#endif //SHARED_MEMORY_H