~ fixed semaphore error
This commit is contained in:
parent
0ae6f39f86
commit
7b2ddf9e0a
@ -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
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user