API Guides > ConceptRT 3.x
ThreadUtils

Namespace ThreadUtils details. All accessory functionalities for the threads. More...

Detailed Description

Namespace ThreadUtils details. All accessory functionalities for the threads.

Functions

bool IsThread ()
 Query if is it a thread. More...
 
Thread & GetThread ()
 Gets the calling thread. More...
 
Int32 GetStackSize ()
 Gets the stack size of the calling thread. More...
 
Int32 GetStackUsed ()
 Gets the stack used of the calling thread. More...
 
Int32 GetStackAvailable ()
 Gets the stack availability of the calling thread. More...
 
void CheckStackAvailable (Int32 size)
 Check if stack availability is greater than the given value. More...
 

Function Documentation

void CheckStackAvailable ( Int32  size)

Check if stack availability is greater than the given value.

Parameters
sizeThe size.
Returns
.
RT Exceptions:
RT_ERROR_CHECK_STACK_AVAILABLE_FAILD
Version
3.3 Move to the namespace ThreadUtils.
Int32 GetStackAvailable ( )

Gets the stack availability of the calling thread.

Returns
The stack available.
Version
3.3 Move to the namespace ThreadUtils.
Int32 GetStackSize ( )

Gets the stack size of the calling thread.

Returns
The stack size.
Version
3.3 Move to the namespace ThreadUtils.
Int32 GetStackUsed ( )

Gets the stack used of the calling thread.

Returns
The stack used.
Version
3.3 Move to the namespace ThreadUtils.
Thread & GetThread ( )

Gets the calling thread.

Returns
The calling thread.
Warning
Must be called in a ConceptRT Thread execution.
RT Exceptions:
RT_ERROR_GET_THREAD_FAILD
Version
3.3 Move to the namespace ThreadUtils.
bool IsThread ( )

Query if is it a thread.

Returns
.
RT Exceptions:
RT_ERROR_GET_THREAD_FAILD
Version
3.3 Move to the namespace ThreadUtils.