| 
    ALPSCore reference
    
   | 
 
Functor-predicate: is it time to stop? More...
#include <stop_callback.hpp>

Public Member Functions | |
| stop_callback (std::size_t timelimit) | |
| Initializes the functor with the desired time duration.  More... | |
| bool | operator() () const | 
Returns true if it's time to stop (time is up or signal is received)  More... | |
Functor-predicate: is it time to stop?
The functor is initialized with desired duration, and returns true when the root process receives a signal or time runs out on the root. 
Definition at line 25 of file stop_callback.hpp.
| alps::stop_callback::stop_callback | ( | std::size_t | timelimit | ) | 
Initializes the functor with the desired time duration.
| timelimit | Time limit (seconds); 0 means "indefinitely" | 
Definition at line 14 of file stop_callback.cpp.
| bool alps::stop_callback::operator() | ( | ) | const | 
Returns true if it's time to stop (time is up or signal is received) 
Definition at line 25 of file stop_callback.cpp.
 1.8.11