TThreadCreateInfo Struct Reference

struct TThreadCreateInfo

This structure specifies the type and properties of the thread to be created. It is passed as a parameter to the RThread::Create() method.

Constructor & Destructor Documentation

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

IMPORT_CTThreadCreateInfo(const TDesC &aName,
TThreadFunctionaFunction,
TIntaStackSize,
TAny *aPtr
)

Parameters

const TDesC & aName
TThreadFunction aFunction
TInt aStackSize
TAny * aPtr

Member Functions Documentation

SetCreateHeap(TInt, TInt)

IMPORT_C voidSetCreateHeap(TIntaHeapMinSize,
TIntaHeapMaxSize
)

Parameters

TInt aHeapMinSize
TInt aHeapMaxSize

SetOwner(const TOwnerType)

IMPORT_C voidSetOwner(const TOwnerTypeaOwner)

Parameters

const TOwnerType aOwner

SetPaging(const TThreadPagingAtt)

IMPORT_C voidSetPaging(const TThreadPagingAttaPaging)

Parameters

const TThreadPagingAtt aPaging

SetUseHeap(const RAllocator *)

IMPORT_C voidSetUseHeap(const RAllocator *aHeap)

Parameters

const RAllocator * aHeap

Member Enumerations Documentation

Enum TThreadCreateVersions

Currently supported version numbers

Enumerators

EVersion0
ESupportedVersions

Enum TThreadPagingAtt

Attributes that specify whether the stack and heap of the thread to be created are data paged or not.

Enumerators

EUnspecified

The thread will use the creating process's paging attributes.

EPaged

The thread will data page its stack and heap.

EUnpaged

The thread will not data page its stack and heap.

Member Data Documentation

TUint iAttributes

TUint iAttributes[protected]

The attributes of the thread

TThreadFunction iFunction

TThreadFunction iFunction[protected]

The function this thread will execute.

RAllocator * iHeap

RAllocator *iHeap[protected]

The heap for the thread to be created to use. NULL if a new heap is to be created.

TInt iHeapMaxSize

TInt iHeapMaxSize[protected]

Maximum size of any heap to be created for the thread.

TInt iHeapMinSize

TInt iHeapMinSize[protected]

Minimum size of any heap to be created for the thread.

const TDesC * iName

const TDesC *iName[protected]

The Name to be given to the thread to be created

TOwnerType iOwner

TOwnerType iOwner[protected]

The owner of the thread to be created.

TAny * iParameter

TAny *iParameter[protected]

The parameter to be passed to the function of the thread to be created.

TUint32 iSpare

TUint32 iSpare[protected]

TInt iStackSize

TInt iStackSize[protected]

The size of the stack of the thread to be created.

TUint iVersionNumber

TUint iVersionNumber[protected]

The version number of this TChunkCreateInfo.