shared-memory/src/SharedMemory.h

18 lines
463 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 <sys/shm.h>
#include <iostream>
#include "internal.h"
//ID-Speicherbereich
//Größe des Speicherbereichs hier 8MB (8000)
#define shmMaxSize 8000
//Shared-Memory-Segment erstellen oder öffnen shmget()
#define Max_Memory_Size 8000
void deleteSharedMemory(int s);
void deleteSharedMemory(void);
void initSharedMemory(void);
key_t changedKey();
std::string getAnswerFromUser();
#endif //SHARED_MEMORY_H