ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::client::InvokerThread< TClass > Class Template Reference

#include <invokerthread.h>

Collaboration diagram for inspectorj::client::InvokerThread< TClass >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename TClass>
class inspectorj::client::InvokerThread< TClass >

InvokerThread is a thread class used to invoke a callback in a new thread.

NOTE: This class makes a deep copy of the JDWPPacket that is passed into its constructor. This allows concurrent processing of a JDWPPacket by multiple JDWPActions.

See also:
jdwp::JDWPPacket

Definition at line 48 of file invokerthread.h.

Public Member Functions

 InvokerThread (TClass *cls, void(TClass::*fpt)(JDWPPacket &), JDWPPacket &pckt)
 Constructor.
 ~InvokerThread ()
 Destructor.

Protected Member Functions

void run ()
 Invokes the callback in a new thread.

Private Attributes

TClass * clsObject
 Class instance on which the callback will be invoked.
void(TClass::* callbackFpt )(JDWPPacket &)
 Function pointer to invoke.
JDWPPacketpacket
 Pointer to a JDWPPacket.


Constructor & Destructor Documentation

template<typename TClass>
inspectorj::client::InvokerThread< TClass >::InvokerThread ( TClass *  cls,
void(TClass::*)(JDWPPacket &)  fpt,
JDWPPacket pckt 
) [inline]

Constructor.

Definition at line 73 of file invokerthread.h.

template<typename TClass>
inspectorj::client::InvokerThread< TClass >::~InvokerThread (  )  [inline]

Destructor.

Definition at line 82 of file invokerthread.h.

References inspectorj::client::InvokerThread< TClass >::packet.


Member Function Documentation

template<typename TClass>
void inspectorj::client::InvokerThread< TClass >::run (  )  [inline, protected]

Invokes the callback in a new thread.

Definition at line 64 of file invokerthread.h.

References inspectorj::client::InvokerThread< TClass >::callbackFpt, inspectorj::client::InvokerThread< TClass >::clsObject, and inspectorj::client::InvokerThread< TClass >::packet.


Member Data Documentation

template<typename TClass>
TClass* inspectorj::client::InvokerThread< TClass >::clsObject [private]

Class instance on which the callback will be invoked.

Definition at line 52 of file invokerthread.h.

Referenced by inspectorj::client::InvokerThread< TClass >::run().

template<typename TClass>
void(TClass::* inspectorj::client::InvokerThread< TClass >::callbackFpt)(JDWPPacket &) [private]

Function pointer to invoke.

Referenced by inspectorj::client::InvokerThread< TClass >::run().

template<typename TClass>
JDWPPacket* inspectorj::client::InvokerThread< TClass >::packet [private]

Pointer to a JDWPPacket.

Definition at line 58 of file invokerthread.h.

Referenced by inspectorj::client::InvokerThread< TClass >::run(), and inspectorj::client::InvokerThread< TClass >::~InvokerThread().


The documentation for this class was generated from the following file:
Generated on Sun Aug 19 17:08:16 2007 for inspectorJ by  doxygen 1.5.1