Mark PollableFdInfo default members as deleted.

GitOrigin-RevId: c16b8d57ac94f67018209af78518db0b95697932
This commit is contained in:
levlam 2018-09-10 15:42:46 +03:00
parent fc0cbae579
commit 00b4fe3bc3
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@
#include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/port/detail/Pollable.h"
#include "td/utils/port/detail/PollableFd.h"
#include "td/utils/port/FileFd.h"
#include "td/utils/port/PollFlags.h"
#include "td/utils/port/signals.h"

View File

@ -62,6 +62,11 @@ inline PollableFd PollableFdRef::lock() {
class PollableFdInfo : private ListNode {
public:
PollableFdInfo() = default;
PollableFdInfo(const PollableFdInfo &) = delete;
PollableFdInfo &operator=(const PollableFdInfo &) = delete;
PollableFdInfo(PollableFdInfo &&) = delete;
PollableFdInfo &operator=(PollableFdInfo &&) = delete;
PollableFd extract_pollable_fd(ObserverBase *observer) {
VLOG(fd) << native_fd() << " extract pollable fd " << tag("observer", observer);
CHECK(!empty());