![]() |
|
PhoenixThread
1.0.0
Tools to ease parallel programming in C++
|
#include <unistd.h>#include <thread>#include <list>#include <mutex>#include <string>#include <iostream>#include "phoenix_thread_clock.h"#include "DetachPool_impl.h"
Include dependency graph for DetachPool.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | DetachPool |
| Pool of detached threads. More... | |
| struct | ThreadDetachInfo |
| Information related to the current detached thread. More... | |
Macros | |
| #define | PEXIT_STATUS_FAIL 2 |
| #define | PEXIT_STATUS_NOT_FIHISHED 0 |
| #define | PEXIT_STATUS_OK 1 |
Typedefs | |
| typedef std::list< ThreadDetachInfo > | ListThreadDetachInfo |
Functions | |
| void | phoenix_printThreadStatus (const ListThreadDetachInfo &listThreadInfo, std::ostream &out=std::cout) |
| Print the status of all remaning thread. | |
| std::string | phoenix_statusToString (int exitStatus) |
| Convert the current status of a thread into a string. | |
| #define PEXIT_STATUS_FAIL 2 |
Definition at line 21 of file DetachPool.h.
| #define PEXIT_STATUS_NOT_FIHISHED 0 |
Definition at line 19 of file DetachPool.h.
Referenced by DetachPool::addThread(), phoenix_statusToString(), and DetachPool::removeFinishedThread().
| #define PEXIT_STATUS_OK 1 |
Definition at line 20 of file DetachPool.h.
Referenced by phoenix_statusToString().
| typedef std::list<ThreadDetachInfo> ListThreadDetachInfo |
Definition at line 31 of file DetachPool.h.
| void phoenix_printThreadStatus | ( | const ListThreadDetachInfo & | listThreadInfo, |
| std::ostream & | out ) |
Print the status of all remaning thread.
| listThreadInfo | : list of thread information to be printed |
| out | : ostream to be used to print information |
Definition at line 25 of file DetachPool.cpp.
References phoenix_statusToString().
Here is the call graph for this function:| std::string phoenix_statusToString | ( | int | exitStatus | ) |
Convert the current status of a thread into a string.
| exitStatus | : status of the thread |
Definition at line 13 of file DetachPool.cpp.
References PEXIT_STATUS_NOT_FIHISHED, and PEXIT_STATUS_OK.
Referenced by phoenix_printThreadStatus(), and DetachPool::removeFinishedThread().
Here is the caller graph for this function: