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.
Public Member Functions | |
---|---|
TThreadCreateInfo(const TDesC &, TThreadFunction, TInt, TAny *) | |
IMPORT_C void | SetCreateHeap(TInt, TInt) |
IMPORT_C void | SetOwner(const TOwnerType) |
IMPORT_C void | SetPaging(const TThreadPagingAtt) |
IMPORT_C void | SetUseHeap(const RAllocator *) |
Public Member Enumerations | |
---|---|
enum | TThreadCreateVersions { EVersion0, ESupportedVersions } |
enum | TThreadPagingAtt { EUnspecified, EPaged, EUnpaged } |
Protected Attributes | |
---|---|
TUint | iAttributes |
TThreadFunction | iFunction |
RAllocator * | iHeap |
TInt | iHeapMaxSize |
TInt | iHeapMinSize |
const TDesC * | iName |
TOwnerType | iOwner |
TAny * | iParameter |
TUint32 | iSpare |
TInt | iStackSize |
TUint | iVersionNumber |
IMPORT_C | TThreadCreateInfo | ( | const TDesC & | aName, |
TThreadFunction | aFunction, | |||
TInt | aStackSize, | |||
TAny * | aPtr | |||
) |
const TDesC & aName | |
TThreadFunction aFunction | |
TInt aStackSize | |
TAny * aPtr |
IMPORT_C void | SetOwner | ( | const TOwnerType | aOwner | ) |
const TOwnerType aOwner |
IMPORT_C void | SetPaging | ( | const TThreadPagingAtt | aPaging | ) |
const TThreadPagingAtt aPaging |
IMPORT_C void | SetUseHeap | ( | const RAllocator * | aHeap | ) |
const RAllocator * aHeap |
Currently supported version numbers
EVersion0 | |
ESupportedVersions |
Attributes that specify whether the stack and heap of the thread to be created are data paged or not.
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. |
TThreadFunction | iFunction | [protected] |
The function this thread will execute.
RAllocator * | iHeap | [protected] |
The heap for the thread to be created to use. NULL if a new heap is to be created.
TInt | iHeapMaxSize | [protected] |
Maximum size of any heap to be created for the thread.
TInt | iHeapMinSize | [protected] |
Minimum size of any heap to be created for the thread.
TAny * | iParameter | [protected] |
The parameter to be passed to the function of the thread to be created.