mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
a29d465ee8
Summary: With Facebook having been renamed Meta Platforms, we need to change the license headers. Reviewed By: fanzeyi Differential Revision: D33407812 fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
31 lines
615 B
C++
31 lines
615 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include "eden/fs/fuse/PollHandle.h"
|
|
|
|
namespace facebook::eden {
|
|
|
|
void PollHandle::Deleter::operator()(fuse_pollhandle* /*h*/) {
|
|
#if FUSE_MAJOR_VERSION >= 8
|
|
fuse_pollhandle_destroy(h);
|
|
#endif
|
|
}
|
|
|
|
PollHandle::PollHandle(fuse_pollhandle* h) : h_(h, PollHandle::Deleter()) {}
|
|
|
|
void PollHandle::notify() {
|
|
#if FUSE_MAJOR_VERSION >= 8
|
|
fuse_lowlevel_notify_poll(h_.get());
|
|
#endif
|
|
}
|
|
|
|
} // namespace facebook::eden
|
|
|
|
#endif
|