1 #include "hmbdc/Copyright.hpp" 3 #include "hmbdc/app/Client.hpp" 8 namespace hmbdc {
namespace app {
10 template <
typename Buffer>
12 :
Client<StuckClientPurger<Buffer>> {
15 : secondsBewteenPurges_(secondsBewteenPurges)
23 if (secondsBewteenPurges_ == secondsCurrent_) {
24 auto res = buffer_.purge();
26 std::cerr <<
"purgedMask=" << std::hex << res << std::dec << std::endl;
34 std::cerr << e.what() << std::endl;
37 char const* hmbdcName()
const {
41 std::tuple<char const*, int> schedSpec()
const {
42 return std::make_tuple(
"SCHED_IDLE", 0);
46 uint32_t secondsBewteenPurges_;
47 uint32_t secondsCurrent_;
Definition: StuckClientPurger.hpp:11
void invokedCb(size_t) override
this callback is called all the time (frequently) - the exact timing is after a batch of messages are...
Definition: StuckClientPurger.hpp:20
Definition: Message.hpp:263
void stoppedCb(std::exception const &e) override
callback called when this Client is taken out of message dispatching
Definition: StuckClientPurger.hpp:33
A Client represents a thread of execution/a task. The execution is managed by a Context. a Client object could participate in message dispatching as the receiver of specifed message types.
Definition: Client.hpp:128