channel::MsgDataHolder< SynchPolicy > Class Template Reference

a simple reference counted msgs holder More...

#include <Msg.h>

List of all members.

Public Member Functions

 MsgDataHolder (char *data)
void set_data (char *d, MsgFreeCallback gobbler)
void ref_incr (void)
void ref_decr (void)
void release (MsgFreeCallback gobbler)

Public Attributes

char * data_
int ref_count_
SynchPolicy::MUTEX ref_count_lock_
 reference count

Private Member Functions

 ~MsgDataHolder ()


Detailed Description

template<class SynchPolicy>
class channel::MsgDataHolder< SynchPolicy >

a simple reference counted msgs holder

Definition at line 79 of file Msg.h.


Constructor & Destructor Documentation

template<class SynchPolicy>
channel::MsgDataHolder< SynchPolicy >::MsgDataHolder char *  data  )  [inline]
 

Definition at line 84 of file Msg.h.

template<class SynchPolicy>
channel::MsgDataHolder< SynchPolicy >::~MsgDataHolder  )  [inline, private]
 

Definition at line 115 of file Msg.h.


Member Function Documentation

template<class SynchPolicy>
void channel::MsgDataHolder< SynchPolicy >::ref_decr void   )  [inline]
 

Definition at line 97 of file Msg.h.

References channel::MsgDataHolder< SynchPolicy >::ref_count_, and channel::MsgDataHolder< SynchPolicy >::ref_count_lock_.

template<class SynchPolicy>
void channel::MsgDataHolder< SynchPolicy >::ref_incr void   )  [inline]
 

Definition at line 93 of file Msg.h.

References channel::MsgDataHolder< SynchPolicy >::ref_count_, and channel::MsgDataHolder< SynchPolicy >::ref_count_lock_.

template<class SynchPolicy>
void channel::MsgDataHolder< SynchPolicy >::release MsgFreeCallback  gobbler  )  [inline]
 

i am not the only holder

Definition at line 102 of file Msg.h.

References channel::MsgDataHolder< SynchPolicy >::data_, channel::MsgDataHolder< SynchPolicy >::ref_count_, and channel::MsgDataHolder< SynchPolicy >::ref_count_lock_.

template<class SynchPolicy>
void channel::MsgDataHolder< SynchPolicy >::set_data char *  d,
MsgFreeCallback  gobbler
[inline]
 

Definition at line 85 of file Msg.h.

References channel::MsgDataHolder< SynchPolicy >::data_, and channel::MsgDataHolder< SynchPolicy >::ref_count_lock_.


Member Data Documentation

template<class SynchPolicy>
char* channel::MsgDataHolder< SynchPolicy >::data_
 

Definition at line 81 of file Msg.h.

Referenced by channel::MsgDataHolder< SynchPolicy >::release(), and channel::MsgDataHolder< SynchPolicy >::set_data().

template<class SynchPolicy>
int channel::MsgDataHolder< SynchPolicy >::ref_count_
 

Definition at line 82 of file Msg.h.

Referenced by channel::MsgDataHolder< SynchPolicy >::ref_decr(), channel::MsgDataHolder< SynchPolicy >::ref_incr(), and channel::MsgDataHolder< SynchPolicy >::release().

template<class SynchPolicy>
SynchPolicy::MUTEX channel::MsgDataHolder< SynchPolicy >::ref_count_lock_
 

reference count

Definition at line 83 of file Msg.h.

Referenced by channel::MsgDataHolder< SynchPolicy >::ref_decr(), channel::MsgDataHolder< SynchPolicy >::ref_incr(), channel::MsgDataHolder< SynchPolicy >::release(), and channel::MsgDataHolder< SynchPolicy >::set_data().


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