20 #include <ripple/beast/core/CurrentThreadName.h>
21 #include <ripple/core/Job.h>
41 : m_cancelCallback(cancelCallback)
64 Job::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
void setCurrentThreadName(std::string_view name)
Changes the name of the caller thread.
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