blob: 5083439fdf1ab65014d034f4c4dc532c23217c97 (
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
|
#pragma once
#include "poller.h"
namespace NYT::NConcurrency {
////////////////////////////////////////////////////////////////////////////////
struct IThreadPoolPoller
: public IPoller
{
//! Reconfigures number of polling threads.
virtual void Reconfigure(int threadCount) = 0;
};
DEFINE_REFCOUNTED_TYPE(IThreadPoolPoller)
////////////////////////////////////////////////////////////////////////////////
IThreadPoolPollerPtr CreateThreadPoolPoller(
int threadCount,
const TString& threadNamePrefix,
TDuration pollingPeriod = TDuration::MilliSeconds(10));
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NConcurrency
|