projects
/
m6w6
/
libmemcached
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0b00e237bb407d098d819b735fefacd504e95390
[m6w6/libmemcached]
/
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
};