Code::Blocks
SVN r11506
|
#include <ipc.h>
Public Types | |
enum | rw_t { reader, writer } |
Public Member Functions | |
SharedMemory () | |
~SharedMemory () | |
bool | OK () const |
void * | BasePointer () const |
size_t | Size () const |
bool | Server () const |
bool | Client () const |
bool | Lock (rw_t rw) |
void | Unlock (rw_t rw) |
Private Attributes | |
shm_handle_t | handle |
union { | |
semaphore_t | semid |
semaphore_t | sem [2] |
}; | |
void * | shared |
bool | ok |
bool | server |
enum SharedMemory::rw_t |
SharedMemory::SharedMemory | ( | ) |
Definition at line 75 of file ipc.cpp.
References g_failed_shm, Mgr< LogManager >::Get(), handle, ipc_buf_size, ok, LogManager::Panic(), reader, server, shared, and writer.
Referenced by Unlock().
SharedMemory::~SharedMemory | ( | ) |
|
inline |
Definition at line 68 of file ipc.h.
References shared.
Referenced by IPC::Entry(), and IPC::Send().
|
inline |
bool SharedMemory::Lock | ( | rw_t | rw | ) |
Definition at line 105 of file ipc.cpp.
References reader, and writer.
Referenced by Client(), IPC::Entry(), IPC::Send(), and Unlock().
|
inline |
|
inline |
void SharedMemory::Unlock | ( | rw_t | rw | ) |
Definition at line 120 of file ipc.cpp.
References g_failed_sem, g_failed_shm, Mgr< LogManager >::Get(), handle, ipc_buf_size, Lock(), ok, LogManager::Panic(), reader, server, shared, SharedMemory(), writer, and ~SharedMemory().
Referenced by Client(), IPC::Entry(), IPC::Send(), and IPC::Shutdown().
union { ... } |
|
private |
Definition at line 47 of file ipc.h.
Referenced by SharedMemory(), Unlock(), and ~SharedMemory().
|
private |
Definition at line 56 of file ipc.h.
Referenced by OK(), SharedMemory(), and Unlock().
|
private |
|
private |
Definition at line 55 of file ipc.h.
Referenced by BasePointer(), SharedMemory(), Unlock(), and ~SharedMemory().