The Pedigree Project
0.1
|
Abstracts a buffer shared between multiple processes. More...
#include <util.h>
Public Member Functions | |
SharedBuffer (size_t size) | |
SharedBuffer (size_t size, void *handle) | |
virtual | ~SharedBuffer () |
void * | getBuffer () |
void * | getHandle () |
Public Attributes | |
PedigreeIpc::SharedIpcMessage * | m_pFramebuffer |
Abstracts a buffer shared between multiple processes.
Pedigree uses shared IPC messages for this purpose, while Linux uses actual Linux shmem regions and passes file descriptors around.
|
virtual |
Definition at line 44 of file user/applications/winman/util.cc.
void * SharedBuffer::getBuffer | ( | ) |
Retrieve the memory address of the buffer.
Definition at line 56 of file user/applications/winman/util.cc.
void * SharedBuffer::getHandle | ( | ) |
Retrieve a handle that can used create a matching SharedBuffer
Definition at line 51 of file user/applications/winman/util.cc.