API Guides > ConceptRT 3.x
Context Time Critical

Detailed Description

Macros

#define RT_NON_DETERMINISTIC_CODE
 Macro to use to specify that the current fonction or method is non deterministic. For e.g. when an new or delete is called. The mechanism behing will check in DEBUG only if the calling thread is TimeCritical or not. More...
 

Functions

void CheckContextNonDeterministic (PCChar8 sourceFileLine)
 Check the consistency of the context of call regarding to the deterministism of the execution. More...
 
bool IsContextTimeCritical ()
 Query if the context is time critical. More...
 

Macro Definition Documentation

#define RT_NON_DETERMINISTIC_CODE

Macro to use to specify that the current fonction or method is non deterministic. For e.g. when an new or delete is called. The mechanism behing will check in DEBUG only if the calling thread is TimeCritical or not.

Version
3.2 : If the calling thread is TimeCritical, it will throw an exception with error code RT_ERROR_NON_DETERMINISTIC_CODE_NOT_ALLOWED.
3.3 or greater : This function will send a message to the user application through Runtime Check Event if there is inconsistence. Exception has been removed to be able to use this macro in destructors.

Function Documentation

void CheckContextNonDeterministic ( PCChar8  sourceFileLine)

Check the consistency of the context of call regarding to the deterministism of the execution.

The context of call is usually a thread. The function must ensure that it is allowed to execute code considered as non deterministic. This function will send a message to the user application through Runtime Check Event if there is inconsistence.

Parameters
sourceFileLineThe source file line.
Version
3.3 or greater feature
bool IsContextTimeCritical ( )

Query if the context is time critical.

Returns
True is yes, False if no.
Version
3.3 Move to the namespace RuntimeCheck.