20 #ifndef RIPPLE_CORE_JOB_H_INCLUDED
21 #define RIPPLE_CORE_JOB_H_INCLUDED
23 #include <ripple/core/LoadMonitor.h>
124 clock_type::time_point
const&
bool operator>=(const Job &j) const
clock_type::time_point const & queue_time() const
Returns the time when the job was queued.
bool operator<=(const Job &j) const
bool operator<(const Job &j) const
CancelCallback getCancelCallback() const
std::function< void(Job &)> mJob
Job()
Default constructor.
bool shouldCancel() const
Returns true if the running job should make a best-effort cancel.
CancelCallback m_cancelCallback
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void rename(std::string const &n)
bool operator>(const Job &j) const
clock_type::time_point m_queue_time
std::shared_ptr< LoadEvent > m_loadEvent