diff options
| author | max42 <[email protected]> | 2023-06-30 11:13:34 +0300 |
|---|---|---|
| committer | max42 <[email protected]> | 2023-06-30 11:13:34 +0300 |
| commit | 3e1899838408bbad47622007aa382bc8a2b01f87 (patch) | |
| tree | 0f21c1e6add187ddb6c3ccc048a7d640ce03fb87 /yt/cpp/mapreduce/interface/wait_proxy.h | |
| parent | 5463eb3f5e72a86f858a3d27c886470a724ede34 (diff) | |
Revert "YT-19324: move YT provider to ydb/library/yql"
This reverts commit ca272f12fdd0e8d5c3e957fc87939148f1caaf72, reversing
changes made to 49f8acfc8b0b5c0071b804423bcf53fda26c7c12.
Diffstat (limited to 'yt/cpp/mapreduce/interface/wait_proxy.h')
| -rw-r--r-- | yt/cpp/mapreduce/interface/wait_proxy.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/yt/cpp/mapreduce/interface/wait_proxy.h b/yt/cpp/mapreduce/interface/wait_proxy.h deleted file mode 100644 index f7d8e0638e9..00000000000 --- a/yt/cpp/mapreduce/interface/wait_proxy.h +++ /dev/null @@ -1,54 +0,0 @@ -#pragma once - -/// -/// @file yt/cpp/mapreduce/interface/serialize.h -/// -/// Header containing interface to enable customizable waiting. - -#include <yt/cpp/mapreduce/interface/common.h> - -#include <util/datetime/base.h> - -namespace NThreading { -template <typename T> -class TFuture; -} - -class TSystemEvent; -class TCondVar; -class TMutex; - -namespace NYT { - -//////////////////////////////////////////////////////////////////////////////// - -/// -/// @brief Interface to facilitate customizable waiting. -/// -/// All the waiting functions in the library are obliged to use the methods of a wait proxy instead of direct function calls. -class IWaitProxy - : public TThrRefBase -{ -public: - virtual ~IWaitProxy() = default; - - /// - /// @brief Wait for the future setting with timeout. - virtual bool WaitFuture(const ::NThreading::TFuture<void>& future, TDuration timeout) = 0; - - /// - /// @brief Wait for a system event with timeout. - virtual bool WaitEvent(TSystemEvent& event, TDuration timeout) = 0; - - /// - /// @brief Wait for the notification on the condition variable with timeout. - virtual bool WaitCondVar(TCondVar& condVar, TMutex& mutex, TDuration timeout) = 0; - - /// - /// @brief Sleep in the current thread for (approximately) specified amount of time. - virtual void Sleep(TDuration timeout) = 0; -}; - -//////////////////////////////////////////////////////////////////////////////// - -} // namespace NYT |
