aboutsummaryrefslogtreecommitdiff
path: root/src/ext/timeouts/bench/bench.h
blob: bc1f7cf1778a2e2e4844178c921e6face3203286 (plain)
1
2
3
4
5
6
7
8
9
10
11
struct benchops {
	void *(*init)(struct timeout *, size_t, int);
	void (*add)(void *, struct timeout *, timeout_t);
	void (*del)(void *, struct timeout *);
	struct timeout *(*get)(void *);
	void (*update)(void *, timeout_t);
	void (*check)(void *);
	int (*empty)(void *);
	struct timeout *(*next)(void *, struct timeouts_it *);
	void (*destroy)(void *);
}; /* struct benchops() */