#include <Port.h>
Public Member Functions | |
Port (Channel *chan, MsgQueueType *que=NULL) | |
~Port () | |
Status | put_msg (Msg *msg, ACE_Time_Value *timeout) |
int | num_pending_msg (void) |
Status | recv_msg (Msg *&msg) |
interface to clients threads: clients of port retrv msgs | |
Status | suspend (void) |
Status | resume (void) |
port is resumed, threads can read/write with it again | |
Private Types | |
typedef Channel::Msg | Msg |
Private Attributes | |
Channel * | my_chan_ |
MsgQueueType * | my_que_ |
ACE_Thread_Semaphore | suspend_sema_ |
int | num_blocked_thr |
bool | borrow_que_ |
Definition at line 30 of file Port.h.
|
|
|
|
Definition at line 56 of file Port.h. References channel::Port< Channel, MsgQueueType >::borrow_que_, and channel::Port< Channel, MsgQueueType >::my_que_. |
|
Definition at line 74 of file Port.h. References channel::Port< Channel, MsgQueueType >::my_que_. |
|
implement Destination methods interface to channel: channel puts msgs into queue Definition at line 63 of file Port.h. References channel::FAILURE, channel::Port< Channel, MsgQueueType >::my_que_, and channel::SUCCESS. |
|
interface to clients threads: clients of port retrv msgs
Definition at line 79 of file Port.h. References channel::Port< Channel, MsgQueueType >::my_que_, channel::Port< Channel, MsgQueueType >::num_blocked_thr, and channel::Port< Channel, MsgQueueType >::suspend_sema_. |
|
port is resumed, threads can read/write with it again
Definition at line 116 of file Port.h. References channel::SUCCESS. |
|
coordination with Tasks/threads which are reading from this port/que port is suspended, all threads will be blocked Definition at line 110 of file Port.h. References channel::SUCCESS. |
|
Definition at line 38 of file Port.h. Referenced by channel::Port< Channel, MsgQueueType >::Port(), and channel::Port< Channel, MsgQueueType >::~Port(). |
|
Definition at line 34 of file Port.h. Referenced by channel::Port< Channel, MsgQueueType >::Port(). |
|
|
Definition at line 37 of file Port.h. Referenced by channel::Port< Channel, MsgQueueType >::Port(), and channel::Port< Channel, MsgQueueType >::recv_msg(). |
|
Definition at line 36 of file Port.h. Referenced by channel::Port< Channel, MsgQueueType >::recv_msg(). |