MeshMachine::CNodeRetryParallelActivity Class Reference

class MeshMachine::CNodeRetryParallelActivity : public MeshMachine::CNodeParallelActivityBase

Base class for activities that run in parallel and can be synchronised or retried.

Public Member Functions
typedef ITFHIERARCHY_2 ( CNodeRetryParallelActivity , AContextStore , AActivitySemaphore )
IMPORT_C TBool IsIdle ()
IMPORT_C CNodeActivityBase * NewL (const TNodeActivity &, AMMNodeBase &)
IMPORT_C void ReturnInterfacePtrL ( AContextStore *&)
IMPORT_C void ReturnInterfacePtrL ( AActivitySemaphore *&)
IMPORT_C void SetIdle ()
Protected Member Functions
CNodeRetryParallelActivity (const TNodeActivity &, AMMNodeBase &, TUint )
IMPORT_C TBool Signal ( TNodeContextBase &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
MeshMachine::CNodeActivityBase::Abort(TNodeContextBase &,TBool)
MeshMachine::CNodeActivityBase::Accept(TNodeContextBase &,const TNodeActivity &,TInt)
MeshMachine::CNodeActivityBase::ActivitySigId()const
MeshMachine::CNodeActivityBase::AppendActivityL()
MeshMachine::CNodeActivityBase::AppendPreallocatedActivity()
MeshMachine::CNodeActivityBase::BorrowPreallocatedSpace(AMMNodeBase &,TUint)
MeshMachine::CNodeActivityBase::CNodeActivityBase(const TNodeActivity &,AMMNodeBase &)
MeshMachine::CNodeActivityBase::Cancel(TNodeContextBase &)
MeshMachine::CNodeActivityBase::ClearPostedTo()
MeshMachine::CNodeActivityBase::Destroy()
MeshMachine::CNodeActivityBase::DoFetchInterfaceControlL(TInt)
MeshMachine::CNodeActivityBase::Error()const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::RNodeInterface &)const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::TNodePeerId &)const
MeshMachine::CNodeActivityBase::FindOriginator(const Messages::TRuntimeCtxId &)const
MeshMachine::CNodeActivityBase::FirstOriginator()const
MeshMachine::CNodeActivityBase::InsertPreallocatedDestroyActivity()
MeshMachine::CNodeActivityBase::KickOffMessageId()const
MeshMachine::CNodeActivityBase::MatchSender(const TNodeContextBase &)const
MeshMachine::CNodeActivityBase::Next(TNodeContextBase &)
MeshMachine::CNodeActivityBase::PostRequestTo(const Messages::RNodeInterface &,const Messages::TSignalBase &,const TBool)
MeshMachine::CNodeActivityBase::PostRequestTo(const Messages::TNodeId &,const Messages::TSignalBase &,const TBool)
MeshMachine::CNodeActivityBase::PostToOriginator(const Messages::TNodePeerId &,const Messages::TSignalBase &)const
MeshMachine::CNodeActivityBase::PostToOriginators(const Messages::TSignalBase &,TUint32,TUint32)
MeshMachine::CNodeActivityBase::PostedToNodeId()const
MeshMachine::CNodeActivityBase::PostedToPeer()const
MeshMachine::CNodeActivityBase::RemoveOriginator(TInt)
MeshMachine::CNodeActivityBase::ReturnPreallocatedSpace(TAny *)
MeshMachine::CNodeActivityBase::SetError(TInt)
MeshMachine::CNodeActivityBase::SetPostedTo(const Messages::RNodeInterface &)
MeshMachine::CNodeActivityBase::SetPostedTo(const Messages::TNodeId &)
MeshMachine::CNodeActivityBase::SoleOriginator()const
MeshMachine::CNodeActivityBase::StartL(TNodeContextBase &,const Messages::XNodePeerId &,const NetStateMachine::TStateTriple &)
MeshMachine::CNodeActivityBase::~CNodeActivityBase()
MeshMachine::CNodeParallelActivityBase::ActivityId()const
MeshMachine::CNodeParallelActivityBase::CNodeParallelActivityBase(const TNodeActivity &,AMMNodeBase &,TUint)
MeshMachine::CNodeParallelActivityBase::GetNextActivityCount(const TNodeActivity &,const AMMNodeBase &)
MeshMachine::CNodeParallelActivityBase::GetNextActivityCountL(const TNodeActivity &,const AMMNodeBase &)
Public Member Type Definitions
typedef NetInterfaces::TIfStaticFetcher < NetInterfaces::TIfStaticFetcher < NetInterfaces::TIfStaticFetcherFirstInHierarchy < NetInterfaces::TInterfaceControl >, CNodeRetryParallelActivity , AContextStore >, CNodeRetryParallelActivity , AActivitySemaphore > TIfStaticFetcherNearestInHierarchy
Inherited Attributes
MeshMachine::CNodeActivityBase::iNode
MeshMachine::CNodeActivityBase::iOriginators
MeshMachine::CNodeParallelActivityBase::iActivityId

Constructor & Destructor Documentation

CNodeRetryParallelActivity(const TNodeActivity &, AMMNodeBase &, TUint)

IMPORT_C CNodeRetryParallelActivity ( const TNodeActivity & aActivitySig,
AMMNodeBase & aNode,
TUint aActivitiesCount
) [protected]

Parameters

const TNodeActivity & aActivitySig Context information about how the activity is to be started
AMMNodeBase & aNode The node to which this activity will belong.
TUint aActivitiesCount The unique part of the activity id

Member Functions Documentation

ITFHIERARCHY_2(CNodeRetryParallelActivity, AContextStore, AActivitySemaphore)

typedef ITFHIERARCHY_2 ( CNodeRetryParallelActivity ,
AContextStore ,
AActivitySemaphore
)

Defines a helper list of interfaces.

IsIdle()

IMPORT_C TBool IsIdle ( ) const [virtual]

Check if the activity has stopped

NewL(const TNodeActivity &, AMMNodeBase &)

IMPORT_C CNodeActivityBase * NewL ( const TNodeActivity & aActivitySig,
AMMNodeBase & aNode
) [static]

Create a new activity. This should never be called by user code.

Parameters

const TNodeActivity & aActivitySig Context information about how the activity is to be started
AMMNodeBase & aNode The node to which this activity will belong.

ReturnInterfacePtrL(AContextStore *&)

IMPORT_C void ReturnInterfacePtrL ( AContextStore *& aInterface )

Fetch the context store interface

Parameters

AContextStore *& aInterface On return, contains a pointer to the store interface

ReturnInterfacePtrL(AActivitySemaphore *&)

IMPORT_C void ReturnInterfacePtrL ( AActivitySemaphore *& aInterface )

Fetch the activity semaphore interface

Parameters

AActivitySemaphore *& aInterface On return, contains a pointer to the semaphore interface

SetIdle()

IMPORT_C void SetIdle ( ) [virtual]

Put the activity into the idle state. This stops the activity running and notifies the mesh machine that it is ok to delete this activity.

Signal(TNodeContextBase &)

IMPORT_C TBool Signal ( TNodeContextBase & aContext ) [protected, virtual]

Signal to the activity that an event has occurred and that it is worthwhile checking to see if the mutex has now cleared.

Parameters

TNodeContextBase & aContext Current context in the state machine.

Member Type Definitions Documentation