Contains the Region object and controls for creating and starting a parallel region.
More...
|
| | ForkedRegion () |
| | Default constructor. More...
|
| |
| | ForkedRegion (uint num_threads, Action omp_fn) |
| | Initializes the threadpool with the specified number of threads and function to be executed, as well as setting the thread names. More...
|
| |
| void | StartThreadpool () |
| | Starts the threadpool and waits for all threads to complete before returning. More...
|
| |
Contains the Region object and controls for creating and starting a parallel region.
◆ ForkedRegion() [1/2]
| DotMP.ForkedRegion.ForkedRegion |
( |
| ) |
|
|
inlinepackage |
◆ ForkedRegion() [2/2]
| DotMP.ForkedRegion.ForkedRegion |
( |
uint |
num_threads, |
|
|
Action |
omp_fn |
|
) |
| |
|
inlinepackage |
Initializes the threadpool with the specified number of threads and function to be executed, as well as setting the thread names.
- Parameters
-
| num_threads | The number of threads to be created. |
| omp_fn | The function to be executed. |
◆ StartThreadpool()
| void DotMP.ForkedRegion.StartThreadpool |
( |
| ) |
|
|
inlinepackage |
Starts the threadpool and waits for all threads to complete before returning.
- Exceptions
-
| Exception | Thrown if an exception is caught in the threadpool. If multiple are thrown, the first one thrown is returned. |
◆ in_parallel_prv
| bool DotMP.ForkedRegion.in_parallel_prv |
|
staticprivate |
Whether or not the program is currently in a parallel region.
◆ in_workshare_prv
| uint DotMP.ForkedRegion.in_workshare_prv = 0 |
|
staticprivate |
Whether or not the program is currently in a worksharing region (>0 meaning the program is in said region).
◆ reg_pv
| Region DotMP.ForkedRegion.reg_pv |
|
staticprivate |
◆ in_parallel
| bool DotMP.ForkedRegion.in_parallel |
|
getprivate setpackage |
◆ in_workshare
| ref uint DotMP.ForkedRegion.in_workshare |
|
getpackage |
◆ reg
The documentation for this class was generated from the following file: