2018-12-31 20:04:05 +01:00
|
|
|
//
|
2021-01-01 13:57:46 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
|
2018-12-31 20:04:05 +01:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#include "td/utils/port/detail/WineventPoll.h"
|
|
|
|
|
|
|
|
char disable_linker_warning_about_empty_file_wineventpoll_cpp TD_UNUSED;
|
|
|
|
|
|
|
|
#ifdef TD_POLL_WINEVENT
|
|
|
|
|
2019-02-12 21:48:16 +01:00
|
|
|
#include "td/utils/common.h"
|
2018-12-31 20:04:05 +01:00
|
|
|
|
|
|
|
namespace td {
|
|
|
|
namespace detail {
|
2018-08-13 19:15:09 +02:00
|
|
|
|
|
|
|
void WineventPoll::init() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void WineventPoll::clear() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void WineventPoll::subscribe(PollableFd fd, PollFlags flags) {
|
|
|
|
fd.release_as_list_node();
|
|
|
|
}
|
|
|
|
|
|
|
|
void WineventPoll::unsubscribe(PollableFdRef fd) {
|
2018-10-26 16:11:20 +02:00
|
|
|
auto pollable_fd = fd.lock(); // unlocked in destructor
|
2018-08-13 19:15:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void WineventPoll::unsubscribe_before_close(PollableFdRef fd) {
|
|
|
|
unsubscribe(std::move(fd));
|
|
|
|
}
|
|
|
|
|
|
|
|
void WineventPoll::run(int timeout_ms) {
|
|
|
|
UNREACHABLE();
|
2018-12-31 20:04:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace detail
|
|
|
|
} // namespace td
|
|
|
|
|
|
|
|
#endif
|