mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
37 lines
293 B
C++
37 lines
293 B
C++
|
#pragma once
|
||
|
|
||
|
#if defined(OS_LINUX)
|
||
|
|
||
|
#include <cstddef>
|
||
|
#include <cstdint>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct EventFD
|
||
|
{
|
||
|
EventFD();
|
||
|
~EventFD();
|
||
|
|
||
|
uint64_t read() const;
|
||
|
bool write(uint64_t increase = 1) const;
|
||
|
|
||
|
int fd = -1;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#elif
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct EventFD
|
||
|
{
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|