Logo
Classes | Macros | Typedefs | Functions
shared_memory-modify.hh File Reference
#include <pthread.h>
#include <sys/shm.h>
#include <sys/ipc.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <cstdlib>
Include dependency graph for shared_memory-modify.hh:

Go to the source code of this file.

Classes

struct  shm_buf
 
struct  semaphore
 

Macros

#define DEFAULT_KEY   85549
 

Typedefs

typedef struct semaphore semaphore_t
 

Functions

semaphore_tsemaphore_create (char *semaphore_name, unsigned qs)
 
semaphore_tsemaphore_open (char *semaphore_name)
 
void semaphore_close (semaphore_t *semap)
 

Macro Definition Documentation

◆ DEFAULT_KEY

#define DEFAULT_KEY   85549

Typedef Documentation

◆ semaphore_t

typedef struct semaphore semaphore_t

Function Documentation

◆ semaphore_close()

void semaphore_close ( semaphore_t semap)

◆ semaphore_create()

semaphore_t* semaphore_create ( char *  semaphore_name,
unsigned  qs 
)

◆ semaphore_open()

semaphore_t* semaphore_open ( char *  semaphore_name)