NeoPZ
|
#include <TPZReschedulableTask.h>
Public Member Functions | |
std::shared_future< void > | GetFuture () |
Public Member Functions inherited from TPZTask | |
TPZTask (const int priority, TPZAutoPointer< std::packaged_task< void(void)>> &task, TPZTaskGroup *taskGroup=NULL) | |
int | priority () const |
virtual void | Cancel () |
virtual | ~TPZTask () |
Protected Member Functions | |
TPZReschedulableTask (const int priority, TPZAutoPointer< std::packaged_task< void(void)>> task, TPZTaskGroup *taskGroup=NULL) | |
virtual void | startInternal () |
virtual void | start () |
Protected Attributes | |
std::mutex | mStateMutex |
Protected Attributes inherited from TPZTask | |
TPZAutoPointer< std::packaged_task< void(void)> > | mTask |
EProcessingState | mState |
TPZTaskGroup * | mTaskGroup |
Private Attributes | |
std::shared_future< void > | mFuture |
std::condition_variable | mCondition |
Friends | |
class | TPZThreadPool |
Additional Inherited Members | |
Protected Types inherited from TPZTask | |
enum | EProcessingState { CREATED, SCHEDULED, STARTED, FINISHED } |
Definition at line 8 of file TPZReschedulableTask.h.
|
protected |
Definition at line 12 of file TPZReschedulableTask.cpp.
std::shared_future< void > TPZReschedulableTask::GetFuture | ( | ) |
Definition at line 17 of file TPZReschedulableTask.cpp.
References mFuture.
|
protectedvirtual |
Reimplemented from TPZTask.
Definition at line 25 of file TPZReschedulableTask.cpp.
References mCondition, TPZTask::mState, mStateMutex, TPZTask::SCHEDULED, and startInternal().
|
protectedvirtual |
Definition at line 21 of file TPZReschedulableTask.cpp.
References TPZTask::start().
Referenced by TPZThreadPool::run(), TPZThreadPool::runNow(), and start().
|
friend |
Definition at line 10 of file TPZReschedulableTask.h.
|
private |
Definition at line 28 of file TPZReschedulableTask.h.
Referenced by TPZThreadPool::run(), TPZThreadPool::runNow(), and start().
|
private |
Definition at line 27 of file TPZReschedulableTask.h.
Referenced by GetFuture(), TPZThreadPool::run(), and TPZThreadPool::runNow().
|
protected |
Definition at line 23 of file TPZReschedulableTask.h.
Referenced by TPZThreadPool::run(), TPZThreadPool::runNow(), and start().