|
jaffarCommon
|
Definitions and utilities for parallel execution. More...
#include <omp.h>#include <stddef.h>#include <stdint.h>
Go to the source code of this file.
Typedefs | |
| typedef uint32_t | jaffarCommon::parallel::threadId_t |
| Type definition for thread identifier. | |
Functions | |
| __JAFFAR_COMMON__INLINE__ threadId_t | jaffarCommon::parallel::getThreadId () |
| __JAFFAR_COMMON__INLINE__ size_t | jaffarCommon::parallel::getThreadCount () |
| __JAFFAR_COMMON__INLINE__ void | jaffarCommon::parallel::setThreadCount (const size_t threadCount) |
| __JAFFAR_COMMON__INLINE__ size_t | jaffarCommon::parallel::getMaxThreadCount () |
Definitions and utilities for parallel execution.
| __JAFFAR_COMMON__INLINE__ size_t jaffarCommon::parallel::getMaxThreadCount | ( | ) |
Gets the number of maximum possible threads
| __JAFFAR_COMMON__INLINE__ size_t jaffarCommon::parallel::getThreadCount | ( | ) |
Gets the number of currently running threads
| __JAFFAR_COMMON__INLINE__ threadId_t jaffarCommon::parallel::getThreadId | ( | ) |
Gets the id of the currently running thread
| __JAFFAR_COMMON__INLINE__ void jaffarCommon::parallel::setThreadCount | ( | const size_t | threadCount | ) |
Sets the number of parallel threads
| [in] | threadCount | The number of currently running threads |