Functor for refcounting of TAO_AMH_Response_Handler. More...
#include <AMH_Response_Handler.h>
Public Member Functions | |
void | operator() (TAO_AMH_Response_Handler *arh) throw () |
Functor for refcounting of TAO_AMH_Response_Handler.
This is used to safely handle the destruction of TAO_AMH_Response_Handler objects which are created on the heap. We cannot use auto_ptr <> since it calls delete on the pointer, and calling delete on TAO_AMH_Response_Handler * will not work. Hence this functor will be used with Auto_Functor class to handle the memory safely.
Definition at line 210 of file AMH_Response_Handler.h.
void TAO::ARH_Refcount_Functor::operator() | ( | TAO_AMH_Response_Handler * | arh | ) | throw () |
Definition at line 317 of file AMH_Response_Handler.cpp.
{ (void) arh->_remove_ref (); }