CommsFW::RCFThread Class Reference

class CommsFW::RCFThread : public RThread

Utility class to control the creation of a new thread. Implements it's own main thread function in order to process the startup correctly. Used to make sure that e.g. the MBufMgr TLS is transferred properly to the new thread, thus enabling it to use the process shared MBuf Manager.

Inherits from

Nested Classes and Structures

Public Member Functions
IMPORT_C TIntCreate(const TDesC &, TThreadFunction, TInt, RHeap *, TAny *)
IMPORT_C TIntCreate(const TDesC &, TThreadFunction, TInt, TInt, TInt, TAny *)
Private Member Functions
TInt RCFThreadFunction(TAny *)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RHandleBase::SetReturnedHandle(TInt)
RHandleBase::SetReturnedHandle(TInt,RHandleBase &)
RThread::Context(TDes8 &)const
RThread::Create(const TDesC &,TThreadFunction,TInt,RAllocator *,TAny *,TOwnerType)
RThread::Create(const TDesC &,TThreadFunction,TInt,TAny *,RLibrary *,RHeap *,TInt,TInt,TOwnerType)
RThread::Create(const TDesC &,TThreadFunction,TInt,TInt,TInt,TAny *,TOwnerType)
RThread::Create(const TThreadCreateInfo &)
RThread::ExitCategory()const
RThread::ExitReason()const
RThread::ExitType()const
RThread::GetCpuTime(TTimeIntervalMicroSeconds &)const
RThread::HandleCount(TInt &,TInt &)const
RThread::HasCapability(TCapability,TCapability,const char *)const
RThread::HasCapability(TCapability,const char *)const
RThread::Id()const
RThread::Kill(TInt)
RThread::Logon(TRequestStatus &)const
RThread::LogonCancel(TRequestStatus &)const
RThread::Open(TThreadId,TOwnerType)
RThread::Open(const TDesC &,TOwnerType)
RThread::Open(const TFindThread &,TOwnerType)
RThread::Panic(const TDesC &,TInt)
RThread::Priority()const
RThread::Process(RProcess &)const
RThread::ProcessPriority()const
RThread::RThread()
RThread::RenameMe(const TDesC &)
RThread::Rendezvous(TInt)
RThread::Rendezvous(TRequestStatus &)const
RThread::RendezvousCancel(TRequestStatus &)const
RThread::RequestComplete(TRequestStatus *&,TInt)const
RThread::RequestCount()const
RThread::RequestSignal()const
RThread::Resume()const
RThread::SecureId()const
RThread::SetPriority(TThreadPriority)const
RThread::SetProcessPriority(TProcessPriority)const
RThread::StackInfo(TThreadStackInfo &)const
RThread::Suspend()const
RThread::Terminate(TInt)
RThread::VendorId()const
Inherited Enumerations
RHandleBase:TAttributes
Private Attributes
struct CommsFW::RCFThread::ThreadStartupInfoiStartupInfo
Inherited Attributes
RHandleBase::iHandle

Member Functions Documentation

Create(const TDesC &, TThreadFunction, TInt, RHeap *, TAny *)

IMPORT_C TIntCreate(const TDesC &aName,
TThreadFunctionaThreadFunction,
TIntaStackSize,
RHeap *aHeap,
TAny *aArg
)

Derived implementation of RThread::Create, which processes some specific data for the new thread before calling the RThread::Create. RThread TThreadFunction RHeap

Parameters

const TDesC & aNameName of the new thread.
TThreadFunction aThreadFunctionMain thread-function.
TInt aStackSizeInitial size of the thread stack.
RHeap * aHeapThe heap for the thread.
TAny * aArgPointer given as argument to aOtherThreadFunction.

Create(const TDesC &, TThreadFunction, TInt, TInt, TInt, TAny *)

IMPORT_C TIntCreate(const TDesC &aName,
TThreadFunctionaThreadFunction,
TIntaStackSize,
TIntaMinHeapSize,
TIntaMaxHeapSize,
TAny *aArg
)

Derived implementation of RThread::Create, which processes some specific data for the new thread before calling the RThread::Create RThread TThreadFunction

Parameters

const TDesC & aNameName of the new thread.
TThreadFunction aThreadFunctionMain thread-function.
TInt aStackSizeInitial size of the thread stack.
TInt aMinHeapSizeMinimum size of the heap that will be created for the thread.
TInt aMaxHeapSizeMaximum size of the heap that will be created for the thread.
TAny * aArgPointer given as argument to aOtherThreadFunction.

RCFThreadFunction(TAny *)

TInt RCFThreadFunction(TAny *aStartupInfo)[private, static]

Intermediate function which masquerades as the main thread function in order to perform some specific actions for the new thread in the correct context before calling the new thread's actual main thread function RCFThread::ThreadStartupInfo

Parameters

TAny * aStartupInfostructure containing pointers to MBufMger and CFlog.

Member Data Documentation

struct CommsFW::RCFThread::ThreadStartupInfo iStartupInfo

struct CommsFW::RCFThread::ThreadStartupInfoiStartupInfo[private]