MADNESS
0.10.1
|
A list of task events. More...
#include <thread.h>
Public Member Functions | |
TaskEventList (const unsigned int nmax) | |
Default constructor. More... | |
virtual | ~TaskEventList ()=default |
Virtual destructor. More... | |
TaskEvent * | event () |
Get a new event from this list. More... | |
Public Member Functions inherited from madness::profiling::TaskEventListBase | |
TaskEventListBase () | |
Default constructor. More... | |
virtual | ~TaskEventListBase ()=default |
Virtual destructor. More... | |
void | insert (TaskEventListBase *list) |
Insert list after this list. More... | |
TaskEventListBase * | next () const |
Get the next event list in the linked list. More... | |
Private Member Functions | |
TaskEventList (const TaskEventList &)=delete | |
TaskEventList & | operator= (const TaskEventList &)=delete |
virtual std::ostream & | print_events (std::ostream &os) const |
Print events recorded in this list. More... | |
Private Attributes | |
std::unique_ptr< TaskEvent[]> | events_ |
The event array. More... | |
unsigned int | n_ |
The number of events recorded. More... | |
A list of task events.
This object is used by the thread pool to record task data.
|
privatedelete |
|
inline |
Default constructor.
[in] | nmax | The maximum number of task events. |
|
virtualdefault |
Virtual destructor.
|
inline |
Get a new event from this list.
nmax
times. It is the caller's resonsibility to ensure that it is not called too many times. Referenced by madness::ThreadPool::run_task(), and madness::ThreadPool::run_tasks().
|
privatedelete |
|
inlineprivatevirtual |
Print events recorded in this list.
[in,out] | os | The output stream. |
Implements madness::profiling::TaskEventListBase.
References events_, madness::ThreadBase::get_pool_thread_index(), n_, and madness::ThreadBase::this_thread().
|
private |
The event array.
Referenced by event(), and print_events().
|
private |
The number of events recorded.
Referenced by event(), and print_events().