#include <SharedMemoryBlockDescriptor.h>
Public Member Functions | |
void | allocate (const char name[256]) |
void | check_clients (boost::interprocess::scoped_lock< boost::interprocess::interprocess_mutex > &lock) |
uint32_t | getSize () const |
bool | matchName (const char *name) const |
void | recordSize (uint32_t newsize, uint32_t alloc=0) |
void | register_client () |
void | reset () |
SharedMemoryBlockDescriptor () | |
void | signal_data () |
void | unregister_client () |
bool | wait_data_and_register_client (boost::interprocess::scoped_lock< boost::interprocess::interprocess_mutex > &lock) |
Public Attributes | |
bool | active_ |
uint32_t | allocated_ |
boost::interprocess::interprocess_condition | datacond |
boost::interprocess::interprocess_condition | lockcond |
boost::interprocess::interprocess_mutex | mutex |
char | name_ [256] |
signed int | num_clients |
uint32_t | resize_count_ |
uint32_t | size_ |
Definition at line 16 of file SharedMemoryBlockDescriptor.h.
Definition at line 5 of file SharedMemoryBlockDescriptor.cpp.
void sharedmem_transport::SharedMemoryBlockDescriptor::allocate | ( | const char | name[256] | ) |
Definition at line 25 of file SharedMemoryBlockDescriptor.cpp.
void sharedmem_transport::SharedMemoryBlockDescriptor::check_clients | ( | boost::interprocess::scoped_lock< boost::interprocess::interprocess_mutex > & | lock | ) | [inline] |
Definition at line 29 of file SharedMemoryBlockDescriptor.h.
uint32_t sharedmem_transport::SharedMemoryBlockDescriptor::getSize | ( | ) | const |
Definition at line 11 of file SharedMemoryBlockDescriptor.cpp.
bool sharedmem_transport::SharedMemoryBlockDescriptor::matchName | ( | const char * | name | ) | const |
Definition at line 38 of file SharedMemoryBlockDescriptor.cpp.
void sharedmem_transport::SharedMemoryBlockDescriptor::recordSize | ( | uint32_t | newsize, |
uint32_t | alloc = 0 |
||
) |
Definition at line 15 of file SharedMemoryBlockDescriptor.cpp.
void sharedmem_transport::SharedMemoryBlockDescriptor::register_client | ( | ) | [inline] |
Definition at line 36 of file SharedMemoryBlockDescriptor.h.
Definition at line 30 of file SharedMemoryBlockDescriptor.cpp.
void sharedmem_transport::SharedMemoryBlockDescriptor::signal_data | ( | ) | [inline] |
Definition at line 70 of file SharedMemoryBlockDescriptor.h.
void sharedmem_transport::SharedMemoryBlockDescriptor::unregister_client | ( | ) | [inline] |
Definition at line 43 of file SharedMemoryBlockDescriptor.h.
bool sharedmem_transport::SharedMemoryBlockDescriptor::wait_data_and_register_client | ( | boost::interprocess::scoped_lock< boost::interprocess::interprocess_mutex > & | lock | ) | [inline] |
Definition at line 56 of file SharedMemoryBlockDescriptor.h.
Definition at line 84 of file SharedMemoryBlockDescriptor.h.
Definition at line 80 of file SharedMemoryBlockDescriptor.h.
boost::interprocess::interprocess_condition sharedmem_transport::SharedMemoryBlockDescriptor::datacond |
Definition at line 77 of file SharedMemoryBlockDescriptor.h.
boost::interprocess::interprocess_condition sharedmem_transport::SharedMemoryBlockDescriptor::lockcond |
Definition at line 76 of file SharedMemoryBlockDescriptor.h.
boost::interprocess::interprocess_mutex sharedmem_transport::SharedMemoryBlockDescriptor::mutex |
Definition at line 75 of file SharedMemoryBlockDescriptor.h.
Definition at line 85 of file SharedMemoryBlockDescriptor.h.
Definition at line 78 of file SharedMemoryBlockDescriptor.h.
Definition at line 82 of file SharedMemoryBlockDescriptor.h.
Definition at line 80 of file SharedMemoryBlockDescriptor.h.