| | |
| | | #ifndef __MSG_MGR_DEF_ |
| | | #define __MSG_MGR_DEF_ |
| | | |
| | | #ifdef __cplusplus |
| | | extern "C" { |
| | | #endif |
| | | #include "shm_allocator.h" |
| | | |
| | | #define SEM_TYPE_ID 0 |
| | | #define RSV_TYPE_ID 1 |
| | |
| | | |
| | | } Msg_info; |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | |
| | | int msg_init(void); |
| | | void msg_distrib(int msg_id, Msg_info *message); |
| | | int get_msg_info(int msg_id, Msg_info *message); |
| | | void *sem_msg_handler(void *skptr); |
| | | void msg_info_set(int index, Msg_info msg_obj); |
| | | |
| | | typedef std::set<int, std::less<int>, SHM_STL_Allocator<int> > recvbuf_val; |
| | | typedef std::map<int, recvbuf_val *, std::less<int>, SHM_STL_Allocator<std::pair<int, recvbuf_val *> > > recvbuf_data; |
| | | |
| | | #endif //end of file |
| | | |
| | | |