blob: cff553f2b7b3bb611ef037fd41a8034206ae3393 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#pragma once
#include "poller_tcp_unit.h"
namespace NInterconnect {
class TPollerUnitEpoll: public TPollerUnit {
public:
TPollerUnitEpoll();
virtual ~TPollerUnitEpoll();
private:
virtual void StartReadOperation(
const TIntrusivePtr<TSharedDescriptor>& s,
TFDDelegate&& operation) override;
virtual void StartWriteOperation(
const TIntrusivePtr<TSharedDescriptor>& s,
TFDDelegate&& operation) override;
virtual void ProcessRead() override;
virtual void ProcessWrite() override;
template <bool Write>
void Process();
template <bool Write>
int GetDescriptor() const;
const int ReadDescriptor, WriteDescriptor;
::sigset_t sigmask;
};
}
|