|
SPH
|
Helper functions to check the internal consistency of the code. More...
Go to the source code of this file.
Classes | |
| class | FunctionChecker |
Macros | |
| #define | CHECK_FUNCTION(flags) |
Enumerations | |
| enum class | CheckFunction { NON_REENRANT = 1 << 0 , MAIN_THREAD = 1 << 1 , NOT_MAIN_THREAD = 1 << 2 , ONCE = 1 << 3 , NO_THROW = 1 << 4 } |
Functions | |
| bool | isMainThread () |
| Checks if the calling thread is the main thred. More... | |
Helper functions to check the internal consistency of the code.
Definition in file CheckFunction.h.
| #define CHECK_FUNCTION | ( | flags | ) |
Definition at line 40 of file CheckFunction.h.
|
strong |
| Enumerator | |
|---|---|
| NON_REENRANT | Function can be executed by any thread, but only once at a time. |
| MAIN_THREAD | Function can only be executed from main thread. |
| NOT_MAIN_THREAD | Function cannot be called from main thread. |
| ONCE | Function can be executed only once in the application. |
| NO_THROW | Function cannot throw exceptions. |
Definition at line 14 of file CheckFunction.h.
| bool isMainThread | ( | ) |
Checks if the calling thread is the main thred.
Definition at line 39 of file CheckFunction.cpp.