TThreadCreateInfo Struct Reference
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 *)
Parameters
const TDesC & aName | The name to be assigned to the thread. KNullDesC, to create an anonymous thread. |
TThreadFunction aFunction | A pointer to a function. Control passes to this function when the thread is first resumed, i.e. when the thread is initially scheduled to run. |
TInt aStackSize | The size of the new thread's stack. This must be at least 512 bytes, otherwise RThread::Create() will fail with KErrArgument. |
TAny * aPtr | A pointer to data to be passed as a parameter to the thread function when the thread is initially scheduled to run. If the thread function does not need any data then this pointer can be NULL. |
Member Functions Documentation
SetCreateHeap(TInt, TInt)
IMPORT_C void | SetCreateHeap | ( | TInt | aHeapMinSize, |
| TInt | aHeapMaxSize |
| ) | |
Sets the thread to be created to create its own heap.
Parameters
TInt aHeapMinSize | The minimum size for the new thread's heap. |
TInt aHeapMaxSize | The maximum size for the new thread's heap. |
SetOwner(const TOwnerType)
Sets the owner the thread to be created. Any previous calls to this method will be overridden for this TThreadCreateInfo object.
Parameters
const TOwnerType aOwner | The owner of the thread to be created. |
SetPaging(const TThreadPagingAtt)
Sets the data paging attributes of the thread to be created. Any previous calls to this method will be overridden for this TThreadCreateInfo object.
Parameters
const TThreadPagingAtt aPaging | The paging attributes for the thread to be created. |
SetUseHeap(const RAllocator *)
Sets the thread to be created to use the heap whose handle is pointed to by aAllocator. If this is NULL, then the thread uses the heap of the creating thread.
Parameters
const RAllocator * aHeap | A pointer to the handle of the heap belonging to another thread which this thread is to use. |
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
The function this thread will execute.
RAllocator * iHeap
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
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.
TInt
iStackSize
TInt
| iStackSize | [protected] |
The size of the stack of the thread to be created.
TUint
iVersionNumber
TUint
| iVersionNumber | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.