Macros | |
#define | RT_BLOCKING_CODE |
Macro to use to specify that the current context of execution can block the calling thread. For e.g. when waiting on OS event or Socket, etc. The mechanism behing will check in DEBUG only if the calling thread has the permission to be blocked. More... | |
Functions | |
bool | IsAllowedBlockingCode () |
Query if the context allows blocking code execution. More... | |
void | CheckBlockingCodePermission (PCChar8 sourceFileLine) |
Check the consistency of the context of call regarding to the blocking code permission. More... | |
#define RT_BLOCKING_CODE |
Macro to use to specify that the current context of execution can block the calling thread. For e.g. when waiting on OS event or Socket, etc. The mechanism behing will check in DEBUG only if the calling thread has the permission to be blocked.
void CheckBlockingCodePermission | ( | PCChar8 | sourceFileLine | ) |
Check the consistency of the context of call regarding to the blocking code permission.
The context of call is usually a thread. The function must ensure that it is allowed to execute code considered as blocking. This function will call ThreadUtils::CheckBlockingCodePermission that send a DebugMessage to the event ThreadUtils::DebugMessageEvent.
sourceFileLine | The source file line. |
bool IsAllowedBlockingCode | ( | ) |
Query if the context allows blocking code execution.