Custom scheduler which runs a for loop in serial.
More...
Custom scheduler which runs a for loop in serial.
◆ LoopInit()
void DotMPTests.Serial.LoopInit |
( |
int |
start, |
|
|
int |
end, |
|
|
uint |
num_threads, |
|
|
uint |
chunk_size |
|
) |
| |
|
inline |
Initializes the loop.
- Parameters
-
start | The start of the loop, inclusive. |
end | The end of the loop, exclusive. |
num_threads | Unused. |
chunk_size | Unused. |
Implements DotMP.IScheduler.
◆ LoopNext()
void DotMPTests.Serial.LoopNext |
( |
int |
thread_id, |
|
|
out int |
start, |
|
|
out int |
end |
|
) |
| |
|
inline |
Runs the whole loop if the thread ID is 0.
- Parameters
-
thread_id | The thread ID. |
start | The start of the loop if thread_id==0, else 0. |
end | The end of the loop if thread_id==0, else 0. |
Implements DotMP.IScheduler.
◆ end
int DotMPTests.Serial.end |
|
private |
End of the loop, exclusive.
◆ executed
bool DotMPTests.Serial.executed |
|
private |
Determines if the loop has already been executed.
◆ start
int DotMPTests.Serial.start |
|
private |
Start of the loop, inclusive.
The documentation for this class was generated from the following file: