MeshMachine::CNodeRetryParallelActivity Class Reference

class MeshMachine::CNodeRetryParallelActivity : public MeshMachine::CNodeParallelActivityBase

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

Inherits from

Public Member Functions
typedefITFHIERARCHY_2(CNodeRetryParallelActivity, AContextStore, AActivitySemaphore)
IMPORT_C TBoolIsIdle()
IMPORT_C CNodeActivityBase *NewL(const TNodeActivity &, AMMNodeBase &)
IMPORT_C voidReturnInterfacePtrL(AContextStore *&)
IMPORT_C voidReturnInterfacePtrL(AActivitySemaphore *&)
IMPORT_C voidSetIdle()
Protected Member Functions
CNodeRetryParallelActivity(const TNodeActivity &, AMMNodeBase &, TUint)
IMPORT_C TBoolSignal(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_CCNodeRetryParallelActivity(const TNodeActivity &aActivitySig,
AMMNodeBase &aNode,
TUintaActivitiesCount
)[protected]

Constructor for CNodeRetryParallelActivity

Parameters

const TNodeActivity & aActivitySigContext information about how the activity is to be started
AMMNodeBase & aNodeThe node to which this activity will belong.
TUint aActivitiesCountThe unique part of the activity id

Member Functions Documentation

ITFHIERARCHY_2(CNodeRetryParallelActivity, AContextStore, AActivitySemaphore)

typedefITFHIERARCHY_2(CNodeRetryParallelActivity,
AContextStore,
AActivitySemaphore
)

Defines a helper list of interfaces.

IsIdle()

IMPORT_C TBoolIsIdle()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 & aActivitySigContext information about how the activity is to be started
AMMNodeBase & aNodeThe node to which this activity will belong.

ReturnInterfacePtrL(AContextStore *&)

IMPORT_C voidReturnInterfacePtrL(AContextStore *&aInterface)

Fetch the context store interface

Parameters

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

ReturnInterfacePtrL(AActivitySemaphore *&)

IMPORT_C voidReturnInterfacePtrL(AActivitySemaphore *&aInterface)

Fetch the activity semaphore interface

Parameters

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

SetIdle()

IMPORT_C voidSetIdle()[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 TBoolSignal(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 & aContextCurrent context in the state machine.

Member Type Definitions Documentation