Google format

This commit is contained in:
Ian Gulliver
2019-05-18 12:18:26 -07:00
parent 07c5e5661d
commit 83dfa81138
11 changed files with 397 additions and 250 deletions

View File

@@ -8,23 +8,23 @@
namespace firesse {
class KeepAlive {
public:
KeepAlive(const std::chrono::nanoseconds& max_stale, Index* index);
~KeepAlive();
public:
KeepAlive(const std::chrono::nanoseconds& max_stale, Index* index);
~KeepAlive();
void Start();
void Stop();
void Start();
void Stop();
private:
const std::chrono::nanoseconds max_stale_;
Index* index_;
private:
const std::chrono::nanoseconds max_stale_;
Index* index_;
// Two shutdown mechanisms, one for if we're in a tight no-syscall loop,
// and one for if we're sleeping in poll()
int shutdown_fd_;
std::atomic<bool> running_ = true;
// Two shutdown mechanisms, one for if we're in a tight no-syscall loop,
// and one for if we're sleeping in poll()
int shutdown_fd_;
std::atomic<bool> running_ = true;
std::thread thread_;
std::thread thread_;
};
} // namespace firesse
} // namespace firesse