DotMP
Public Member Functions | Private Attributes | List of all members
DotMPTests.Serial Class Reference

Custom scheduler which runs a for loop in serial. More...

Inheritance diagram for DotMPTests.Serial:
Inheritance graph
[legend]
Collaboration diagram for DotMPTests.Serial:
Collaboration graph
[legend]

Public Member Functions

void LoopInit (int start, int end, uint num_threads, uint chunk_size)
 Initializes the loop. More...
 
void LoopNext (int thread_id, out int start, out int end)
 Runs the whole loop if the thread ID is 0. More...
 

Private Attributes

int start
 Start of the loop, inclusive. More...
 
int end
 End of the loop, exclusive. More...
 
bool executed
 Determines if the loop has already been executed. More...
 

Detailed Description

Custom scheduler which runs a for loop in serial.

Member Function Documentation

◆ LoopInit()

void DotMPTests.Serial.LoopInit ( int  start,
int  end,
uint  num_threads,
uint  chunk_size 
)
inline

Initializes the loop.

Parameters
startThe start of the loop, inclusive.
endThe end of the loop, exclusive.
num_threadsUnused.
chunk_sizeUnused.

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_idThe thread ID.
startThe start of the loop if thread_id==0, else 0.
endThe end of the loop if thread_id==0, else 0.

Implements DotMP.IScheduler.

Member Data Documentation

◆ 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: