~ fixed semaphore error

This commit is contained in:
Julian Hinxlage 2019-11-12 18:24:35 +01:00
parent 0ae6f39f86
commit 7b2ddf9e0a
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#ifndef LIBRARY_SHAREDMEMORYACCESSS_H #ifndef LIBRARY_SHAREDMEMORYACCESSS_H
#define LIBRARY_SHAREDMEMORYACCESSS_H #define LIBRARY_SHAREDMEMORYACCESSS_H
int initSemaphore();
/** /**
* use lock and unlock when writing * use lock and unlock when writing

View File

@ -10,6 +10,7 @@ void initialize(int pid) {
impl.sharedMemoryPid = pid; impl.sharedMemoryPid = pid;
impl.sharedMemoryKey = 12345;// NOLINT impl.sharedMemoryKey = 12345;// NOLINT
impl.sharedMemorySize = 8000;// NOLINT impl.sharedMemorySize = 8000;// NOLINT
initSemaphore();
setDefaultValues(); setDefaultValues();
} }