OKlibrary
0.2.1.6

Functor class, counting a counter down, to simulate some operation. More...
#include <ExperimentalThreads.hpp>
Public Types  
typedef unsigned int  uint_type 
Public Member Functions  
Counter ()  
Counter (const uint_type n)  
void  operator() () const 
Static Public Member Functions  
static uint_type  counter () 
Functor class, counting a counter down, to simulate some operation.
Contains a static unsigned integer "counter", which is initialised by Counter(n), while Counter() does not change the current value. For an object c of type Counter the call c() runs through counter*multiplier many simple assignments. The purpose of the template parameter is to create independent classes.
Definition at line 38 of file ExperimentalThreads.hpp.
typedef unsigned int OKlib::Parallelism::Counter< N >::uint_type 
Definition at line 40 of file ExperimentalThreads.hpp.
OKlib::Parallelism::Counter< N >::Counter  (  )  [inline] 
Definition at line 43 of file ExperimentalThreads.hpp.
OKlib::Parallelism::Counter< N >::Counter  (  const uint_type  n  )  [inline, explicit] 
Definition at line 44 of file ExperimentalThreads.hpp.
static uint_type OKlib::Parallelism::Counter< N >::counter  (  )  [inline, static] 
Definition at line 46 of file ExperimentalThreads.hpp.
void OKlib::Parallelism::Counter< N >::operator()  (  )  const [inline] 
Reimplemented in OKlib::Parallelism::CounterWithMutex< N >.
Definition at line 47 of file ExperimentalThreads.hpp.