projects
/
awesomized
/
libmemcached
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
tests: investigating catch2
[awesomized/libmemcached]
/
testing
/
lib
/
Poll.hpp
1
#pragma once
2
3
#include <vector>
4
5
using namespace std;
6
7
class Poll {
8
private:
9
short events;
10
int timeout, max;
11
float growth;
12
13
public:
14
explicit Poll(short events_ = 0, int timeout_ = 20, int max_ = 1000, float growth_ = 1.1)
15
: events{events_}
16
, timeout{timeout_}
17
, max{max_}
18
, growth{growth_}
19
{}
20
21
bool operator () (const vector<int> &fds);
22
};