|
MADNESS 0.10.1
|
A list of task events. More...
#include <thread.h>


Public Member Functions | |
| TaskEventList (const unsigned int nmax) | |
| Default constructor. | |
| virtual | ~TaskEventList ()=default |
| Virtual destructor. | |
| TaskEvent * | event () |
| Get a new event from this list. | |
Public Member Functions inherited from madness::profiling::TaskEventListBase | |
| TaskEventListBase () | |
| Default constructor. | |
| virtual | ~TaskEventListBase ()=default |
| Virtual destructor. | |
| void | insert (TaskEventListBase *list) |
Insert list after this list. | |
| TaskEventListBase * | next () const |
| Get the next event list in the linked list. | |
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. | |
Private Attributes | |
| std::unique_ptr< TaskEvent[]> | events_ |
| The event array. | |
| unsigned int | n_ |
| The number of events recorded. | |
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().