channel::OutputMgr< Channel, ConnHandler > Class Template Reference

mgr of output thread pool More...

#include <OutputMgr.h>

Inheritance diagram for channel::OutputMgr< Channel, ConnHandler >:

ACE_Task List of all members.

Public Types

typedef Channel::Msg Msg
enum  { QUEUE_MAX = 16 * 1024 }

Public Member Functions

 OutputMgr (int nt=1)
int num_thr (void)
void num_thr (int nt)
virtual int open ()
void shut_down (void)
virtual int close ()
virtual int put (ACE_Message_Block *mb, ACE_Time_Value *timeout=0)
 add output request msgs

Protected Member Functions

virtual int svc ()
virtual int send (ACE_Message_Block *mblk)

Private Attributes

int num_thr_
ACE_Thread_Mutex num_thr_lock_
ACE_Thread_Semaphore exit_sema_

Detailed Description

template<class Channel, class ConnHandler>
class channel::OutputMgr< Channel, ConnHandler >

mgr of output thread pool

Definition at line 51 of file OutputMgr.h.


Member Typedef Documentation

template<class Channel, class ConnHandler>
typedef Channel::Msg channel::OutputMgr< Channel, ConnHandler >::Msg
 

Definition at line 59 of file OutputMgr.h.


Member Enumeration Documentation

template<class Channel, class ConnHandler>
anonymous enum
 

Enumerator:
QUEUE_MAX 

Definition at line 61 of file OutputMgr.h.


Constructor & Destructor Documentation

template<class Channel, class ConnHandler>
channel::OutputMgr< Channel, ConnHandler >::OutputMgr int  nt = 1  )  [inline]
 

Definition at line 63 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::num_thr_.


Member Function Documentation

template<class Channel, class ConnHandler>
virtual int channel::OutputMgr< Channel, ConnHandler >::close void   )  [inline, virtual]
 

Definition at line 88 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::exit_sema_.

template<class Channel, class ConnHandler>
void channel::OutputMgr< Channel, ConnHandler >::num_thr int  nt  )  [inline]
 

Definition at line 69 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::num_thr_.

template<class Channel, class ConnHandler>
int channel::OutputMgr< Channel, ConnHandler >::num_thr void   )  [inline]
 

Definition at line 67 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::num_thr_.

template<class Channel, class ConnHandler>
virtual int channel::OutputMgr< Channel, ConnHandler >::open void   )  [inline, virtual]
 

Definition at line 71 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::num_thr_, and channel::OutputMgr< Channel, ConnHandler >::QUEUE_MAX.

template<class Channel, class ConnHandler>
virtual int channel::OutputMgr< Channel, ConnHandler >::put ACE_Message_Block *  mb,
ACE_Time_Value *  timeout = 0
[inline, virtual]
 

add output request msgs

Definition at line 100 of file OutputMgr.h.

template<class Channel, class ConnHandler>
virtual int channel::OutputMgr< Channel, ConnHandler >::send ACE_Message_Block *  mblk  )  [inline, protected, virtual]
 

Definition at line 129 of file OutputMgr.h.

References channel::Out_Bound_Msg< Channel, ConnHandler >::conn, channel::Out_Bound_Msg< Channel, ConnHandler >::msg, and channel::ConnHandler< Channel, Transport >::send_msg().

template<class Channel, class ConnHandler>
void channel::OutputMgr< Channel, ConnHandler >::shut_down void   )  [inline]
 

Definition at line 79 of file OutputMgr.h.

References channel::OutputMgr< Channel, ConnHandler >::exit_sema_, and channel::OutputMgr< Channel, ConnHandler >::num_thr_.

template<class Channel, class ConnHandler>
virtual int channel::OutputMgr< Channel, ConnHandler >::svc  )  [inline, protected, virtual]
 

Definition at line 106 of file OutputMgr.h.


Member Data Documentation

template<class Channel, class ConnHandler>
ACE_Thread_Semaphore channel::OutputMgr< Channel, ConnHandler >::exit_sema_ [private]
 

Definition at line 56 of file OutputMgr.h.

Referenced by channel::OutputMgr< Channel, ConnHandler >::close(), and channel::OutputMgr< Channel, ConnHandler >::shut_down().

template<class Channel, class ConnHandler>
int channel::OutputMgr< Channel, ConnHandler >::num_thr_ [private]
 

Definition at line 54 of file OutputMgr.h.

Referenced by channel::OutputMgr< Channel, ConnHandler >::num_thr(), channel::OutputMgr< Channel, ConnHandler >::open(), channel::OutputMgr< Channel, ConnHandler >::OutputMgr(), and channel::OutputMgr< Channel, ConnHandler >::shut_down().

template<class Channel, class ConnHandler>
ACE_Thread_Mutex channel::OutputMgr< Channel, ConnHandler >::num_thr_lock_ [private]
 

Definition at line 55 of file OutputMgr.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 19:59:24 2006 for channel by  doxygen 1.4.6-NO