mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
WIP shm deletion working on blackfin
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "sls_detector_defs.h"
|
#include "sls_detector_defs.h"
|
||||||
#include <semaphore.h>
|
|
||||||
|
|
||||||
void sharedMemory_print();
|
void sharedMemory_print();
|
||||||
int sharedMemory_create(int port);
|
int sharedMemory_create(int port);
|
||||||
|
@ -6,11 +6,12 @@
|
|||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <semaphore.h>
|
||||||
|
|
||||||
#define SHM_NAME "sls_server_shared_memory"
|
#define SHM_NAME "sls_server_shared_memory"
|
||||||
#define SHM_VERSION 0x200625
|
#define SHM_VERSION 0x200625
|
||||||
#define SHM_KEY 5678
|
#define SHM_KEY 5678
|
||||||
#define MEM_SIZE 128
|
#define MEM_SIZE 128
|
||||||
|
|
||||||
typedef struct Memory {
|
typedef struct Memory {
|
||||||
int version;
|
int version;
|
||||||
|
Reference in New Issue
Block a user