![]() |
|
PhoenixThread
1.0.0
Tools to ease parallel programming in C++
|
#include <iostream>#include "phoenix_color.h"#include "phoenix_system.h"#include "convertToString.h"#include "phoenix_vector_split.h"#include "lauchParallelThread.h"#include "PMultiThreadProgress.h"#include "phoenix_program_call.h"
Include dependency graph for phoenix_program_call.cpp:Go to the source code of this file.
Functions | |
| void | phoenix_program_addcall (VecProgramCall &vecCall, const PString &name, const PString &command, const PPath &workingDirectory, const PPath &logFile) |
| Add a program call. | |
| void | phoenix_program_call (ProgramCall &call) |
| Call a program. | |
| void | phoenix_program_callParallel (VecProgramCall &vecCall, size_t nbThread) |
| Exectute programs on several threads. | |
| void | phoenix_program_callParallelProgressBar (VecProgramCall &vecCall, size_t nbThread) |
| Exectute programs on several threads (with a multithread progress bar) | |
| void | phoenix_program_callParallelProgressBar (VecVecProgramCall &vecVecProgramCall) |
| Exectute programs on several threads (with a multithread progress bar) | |
| void | phoenix_program_callVec (VecProgramCall &vecCall) |
| Call a vector of program. | |
| void | phoenix_program_callVecProgress (PMultiThreadProgress &progress, VecProgramCall &vecCall, size_t threadIndex) |
| Call a vector of program. | |
| size_t | phoenix_program_getNbCall (const VecVecProgramCall &vecCall) |
| Get the number of call. | |
| size_t | phoenix_program_getNbCallExitStatusType (const VecProgramCall &vecCall, int result) |
| Get number of call result of a given type. | |
| size_t | phoenix_program_getNbCallExitStatusType (const VecVecProgramCall &vecCall, int result) |
| Get number of call result of a given type. | |
| size_t | phoenix_program_getNbSuccessCall (const VecProgramCall &vecCall) |
| Get the number of success call. | |
| size_t | phoenix_program_getNbSuccessCall (const VecVecProgramCall &vecCall) |
| Get the number of success call. | |
| void phoenix_program_addcall | ( | VecProgramCall & | vecCall, |
| const PString & | name, | ||
| const PString & | command, | ||
| const PPath & | workingDirectory, | ||
| const PPath & | logFile ) |
Add a program call.
| [out] | vecCall | : vector of program call |
| name | : name of the call | |
| command | : command of the call | |
| workingDirectory | : directory in which to call the program | |
| logFile | : log file of the call |
Definition at line 108 of file phoenix_program_call.cpp.
References ProgramCall::setCommand(), ProgramCall::setExitStatus(), ProgramCall::setLogFile(), ProgramCall::setName(), and ProgramCall::setWorkingDirectory().
Here is the call graph for this function:| void phoenix_program_call | ( | ProgramCall & | call | ) |
Call a program.
| [out] | call | : program to be executed |
Definition at line 23 of file phoenix_program_call.cpp.
References ProgramCall::getCommand(), ProgramCall::getLogFile(), ProgramCall::getWorkingDirectory(), and ProgramCall::setExitStatus().
Referenced by phoenix_program_callVec(), and phoenix_program_callVecProgress().
Here is the call graph for this function:
Here is the caller graph for this function:| void phoenix_program_callParallel | ( | VecProgramCall & | vecCall, |
| size_t | nbThread ) |
Exectute programs on several threads.
| [out] | vecCall | : vector of commands to be exectuted |
| nbThread | : number of thread to be used |
Definition at line 51 of file phoenix_program_call.cpp.
References lauchParallelThread(), and phoenix_program_callVec().
Here is the call graph for this function:| void phoenix_program_callParallelProgressBar | ( | VecProgramCall & | vecCall, |
| size_t | nbThread ) |
Exectute programs on several threads (with a multithread progress bar)
| [out] | vecCall | : vector of commands to be exectuted |
| nbThread | : number of thread to be used |
Definition at line 94 of file phoenix_program_call.cpp.
References phoenix_program_callParallelProgressBar().
Here is the call graph for this function:| void phoenix_program_callParallelProgressBar | ( | VecVecProgramCall & | vecVecProgramCall | ) |
Exectute programs on several threads (with a multithread progress bar)
| [out] | vecVecProgramCall | : vector of commands to be exectuted (already split over threads) |
Definition at line 72 of file phoenix_program_call.cpp.
References phoenix_print_parallel_progress(), phoenix_program_callVecProgress(), phoenix_program_getNbCall(), and phoenix_program_getNbSuccessCall().
Referenced by phoenix_program_callParallelProgressBar().
Here is the call graph for this function:
Here is the caller graph for this function:| void phoenix_program_callVec | ( | VecProgramCall & | vecCall | ) |
Call a vector of program.
| [out] | vecCall | : vector of program to be executed |
Definition at line 41 of file phoenix_program_call.cpp.
References phoenix_program_call().
Referenced by phoenix_program_callParallel().
Here is the call graph for this function:
Here is the caller graph for this function:| void phoenix_program_callVecProgress | ( | PMultiThreadProgress & | progress, |
| VecProgramCall & | vecCall, | ||
| size_t | threadIndex ) |
Call a vector of program.
| [out] | progress | : multithread progress bar to be used |
| [out] | vecCall | : vector of program to be executed |
| threadIndex | : index of the current thread |
Definition at line 61 of file phoenix_program_call.cpp.
References PMultiThreadProgress::addProgressBar(), PMultiThreadProgress::incrementProgress(), and phoenix_program_call().
Referenced by phoenix_program_callParallelProgressBar().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t phoenix_program_getNbCall | ( | const VecVecProgramCall & | vecCall | ) |
Get the number of call.
| vecCall | : vector of vector of call |
Definition at line 166 of file phoenix_program_call.cpp.
Referenced by phoenix_program_callParallelProgressBar().
Here is the caller graph for this function:| size_t phoenix_program_getNbCallExitStatusType | ( | const VecProgramCall & | vecCall, |
| int | result ) |
Get number of call result of a given type.
| vecCall | : vector of call |
| result | : expected result |
Definition at line 125 of file phoenix_program_call.cpp.
Referenced by phoenix_program_getNbCallExitStatusType(), phoenix_program_getNbSuccessCall(), and phoenix_program_getNbSuccessCall().
Here is the caller graph for this function:| size_t phoenix_program_getNbCallExitStatusType | ( | const VecVecProgramCall & | vecCall, |
| int | result ) |
Get number of call result of a given type.
| vecCall | : vector of vector of call |
| result | : expected result |
Definition at line 138 of file phoenix_program_call.cpp.
References phoenix_program_getNbCallExitStatusType().
Here is the call graph for this function:| size_t phoenix_program_getNbSuccessCall | ( | const VecProgramCall & | vecCall | ) |
Get the number of success call.
| vecCall | : vector of call |
Definition at line 150 of file phoenix_program_call.cpp.
References phoenix_program_getNbCallExitStatusType().
Referenced by phoenix_program_callParallelProgressBar().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t phoenix_program_getNbSuccessCall | ( | const VecVecProgramCall & | vecCall | ) |
Get the number of success call.
| vecCall | : vector of vector of call |
Definition at line 158 of file phoenix_program_call.cpp.
References phoenix_program_getNbCallExitStatusType().
Here is the call graph for this function: