VinaLC: Parallel Molecular Docking Program

Biochemical and Biophysical Systems Group
VinaLC version: 1.1.2

parallel_for< F, true > Struct Template Reference

#include <parallel.h>

Inheritance diagram for parallel_for< F, true >:
Collaboration diagram for parallel_for< F, true >:

Classes

struct  aux
 

Public Member Functions

 parallel_for (const F *f, sz num_threads)
 
void run (sz size_)
 
virtual ~parallel_for ()
 

Private Member Functions

void loop ()
 
boost::optional< szget_next ()
 

Private Attributes

aux a
 
const F * m_f
 
boost::condition cond
 
boost::condition busy
 
bool destructing
 
sz size
 
sz started
 
sz finished
 
boost::mutex self
 

Constructor & Destructor Documentation

template<typename F >
parallel_for< F, true >::parallel_for ( const F *  f,
sz  num_threads 
)
inline

References VINA_FOR.

template<typename F >
virtual parallel_for< F, true >::~parallel_for ( )
inlinevirtual

Member Function Documentation

template<typename F >
void parallel_for< F, true >::run ( sz  size_)
inline
template<typename F >
void parallel_for< F, true >::loop ( )
inlineprivate
template<typename F >
boost::optional<sz> parallel_for< F, true >::get_next ( )
inlineprivate

Member Data Documentation

template<typename F >
aux parallel_for< F, true >::a
private
template<typename F >
const F* parallel_for< F, true >::m_f
private
template<typename F >
boost::condition parallel_for< F, true >::cond
private
template<typename F >
boost::condition parallel_for< F, true >::busy
private
template<typename F >
bool parallel_for< F, true >::destructing
private
template<typename F >
sz parallel_for< F, true >::size
private
template<typename F >
sz parallel_for< F, true >::started
private
template<typename F >
sz parallel_for< F, true >::finished
private
template<typename F >
boost::mutex parallel_for< F, true >::self
private

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