MADNESS
version 0.9
|
Provides interface for tracking dependencies. More...
#include <worlddep.h>
Public Member Functions | |
DependencyInterface (int ndep=0) | |
int | ndep () const |
Returns the number of unsatisfied dependencies. More... | |
bool | probe () const |
Returns true if ndepend == 0. More... | |
void | notify () |
Invoked by callbacks to notifiy of dependencies being satisfied. More... | |
void | register_callback (CallbackInterface *callback) |
Registers a callback for when ndepend==0 , immediately invoked if ndepend==0 . More... | |
void | inc () |
Increment the number of dependencies. More... | |
void | dec () |
Decrement the number of dependencies and invoke callback if ndepend=0. More... | |
virtual | ~DependencyInterface () |
Public Member Functions inherited from madness::CallbackInterface | |
virtual | ~CallbackInterface () |
Provides interface for tracking dependencies.
|
inline |
|
inlinevirtual |
References madness::error().
|
inline |
Decrement the number of dependencies and invoke callback if ndepend=0.
Referenced by notify().
|
inline |
Increment the number of dependencies.
Referenced by madness::detail::ForEachTask< rangeT, opT >::ForEachTask().
|
inline |
Returns the number of unsatisfied dependencies.
Referenced by madness::WorldTaskQueue::add(), and probe().
|
inlinevirtual |
Invoked by callbacks to notifiy of dependencies being satisfied.
Implements madness::CallbackInterface.
References dec().
Referenced by madness::detail::ForEachRootTask< rangeT, opT >::complete().
|
inline |
|
inline |
Registers a callback for when ndepend==0
, immediately invoked if ndepend==0
.
References probe().
Referenced by madness::Future< std::vector< Future< T > > >::Future().