chromium/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.cc

// Copyright 2023 The Abseil Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "absl/synchronization/internal/kernel_timeout.h"

#ifndef _WIN32
#include <sys/types.h>
#endif

#include <algorithm>
#include <chrono>  // NOLINT(build/c++11)
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <limits>

#include "absl/base/attributes.h"
#include "absl/base/call_once.h"
#include "absl/base/config.h"
#include "absl/time/time.h"

namespace absl {
ABSL_NAMESPACE_BEGIN
namespace synchronization_internal {

#ifdef ABSL_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL
constexpr uint64_t KernelTimeout::kNoTimeout;
constexpr int64_t KernelTimeout::kMaxNanos;
#endif

int64_t KernelTimeout::SteadyClockNow() {}

KernelTimeout::KernelTimeout(absl::Time t) {}

KernelTimeout::KernelTimeout(absl::Duration d) {}

int64_t KernelTimeout::MakeAbsNanos() const {}

int64_t KernelTimeout::InNanosecondsFromNow() const {}

struct timespec KernelTimeout::MakeAbsTimespec() const {}

struct timespec KernelTimeout::MakeRelativeTimespec() const {}

#ifndef _WIN32
struct timespec KernelTimeout::MakeClockAbsoluteTimespec(clockid_t c) const {}
#endif

KernelTimeout::DWord KernelTimeout::InMillisecondsFromNow() const {}

std::chrono::time_point<std::chrono::system_clock>
KernelTimeout::ToChronoTimePoint() const {}

std::chrono::nanoseconds KernelTimeout::ToChronoDuration() const {}

}  // namespace synchronization_internal
ABSL_NAMESPACE_END
}  // namespace absl