Simplified distributed block storage with strong consistency, like in Ceph
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
368 B

#pragma once
#include "ringloop.h"
class timerfd_interval
int wait_state;
int timerfd, timerfd_index;
int status;
ring_loop_t *ringloop;
ring_consumer_t consumer;
std::function<void(void)> callback;
timerfd_interval(ring_loop_t *ringloop, int seconds, std::function<void(void)> cb);
void loop();