DiSMEC++
anonymous_namespace{runner.cpp}::DummyTask Struct Reference
Inheritance diagram for anonymous_namespace{runner.cpp}::DummyTask:
dismec::parallel::TaskGenerator

Public Member Functions

 DummyTask ()
 
void run_tasks (long begin, long end, thread_id_t thread_id) override
 
long num_tasks () const override
 
- Public Member Functions inherited from dismec::parallel::TaskGenerator
virtual ~TaskGenerator ()=default
 
virtual void prepare (long num_threads, long chunk_size)
 Called to notify the TaskGenerator about the number of threads. More...
 
virtual void init_thread (thread_id_t thread_id)
 Called once a thread has spun up, but before it runs its first task. More...
 
virtual void finalize ()
 Called after all threads have finished their tasks. More...
 

Public Attributes

std::vector< int > check
 
bool do_work =false
 

Additional Inherited Members

- Public Types inherited from dismec::parallel::TaskGenerator
using thread_id_t = dismec::parallel::thread_id_t
 

Detailed Description

Definition at line 171 of file runner.cpp.

Constructor & Destructor Documentation

◆ DummyTask()

anonymous_namespace{runner.cpp}::DummyTask::DummyTask ( )
inline

Definition at line 172 of file runner.cpp.

Member Function Documentation

◆ num_tasks()

long anonymous_namespace{runner.cpp}::DummyTask::num_tasks ( ) const
inlineoverridevirtual

Implements dismec::parallel::TaskGenerator.

Definition at line 183 of file runner.cpp.

◆ run_tasks()

void anonymous_namespace{runner.cpp}::DummyTask::run_tasks ( long  begin,
long  end,
thread_id_t  thread_id 
)
inlineoverridevirtual

Implements dismec::parallel::TaskGenerator.

Definition at line 175 of file runner.cpp.

Member Data Documentation

◆ check

std::vector<int> anonymous_namespace{runner.cpp}::DummyTask::check

Definition at line 187 of file runner.cpp.

◆ do_work

bool anonymous_namespace{runner.cpp}::DummyTask::do_work =false

Definition at line 188 of file runner.cpp.


The documentation for this struct was generated from the following file: