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 TInt Create (const TDesC &, TThreadFunction , TInt , RHeap *, TAny *)
IMPORT_C TInt Create (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::ThreadStartupInfo iStartupInfo
Inherited Attributes
RHandleBase::iHandle

Member Functions Documentation

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

IMPORT_C TInt Create ( const TDesC & aName,
TThreadFunction aThreadFunction,
TInt aStackSize,
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 & aName Name of the new thread.
TThreadFunction aThreadFunction Main thread-function.
TInt aStackSize Initial size of the thread stack.
RHeap * aHeap The heap for the thread.
TAny * aArg Pointer given as argument to aOtherThreadFunction.

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

IMPORT_C TInt Create ( const TDesC & aName,
TThreadFunction aThreadFunction,
TInt aStackSize,
TInt aMinHeapSize,
TInt aMaxHeapSize,
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 & aName Name of the new thread.
TThreadFunction aThreadFunction Main thread-function.
TInt aStackSize Initial size of the thread stack.
TInt aMinHeapSize Minimum size of the heap that will be created for the thread.
TInt aMaxHeapSize Maximum size of the heap that will be created for the thread.
TAny * aArg Pointer 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 * aStartupInfo structure containing pointers to MBufMger and CFlog.

Member Data Documentation

struct CommsFW::RCFThread::ThreadStartupInfo iStartupInfo

struct CommsFW::RCFThread::ThreadStartupInfo iStartupInfo [private]