//===--- Linux absolute timeout ---------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_ABS_TIMEOUT_H #define LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_ABS_TIMEOUT_H #include "hdr/time_macros.h" #include "hdr/types/struct_timespec.h" #include "src/__support/CPP/expected.h" #include "src/__support/macros/config.h" #include "src/__support/time/units.h" namespace LIBC_NAMESPACE_DECL { namespace internal { // We use AbsTimeout to remind ourselves that the timeout is an absolute time. // This is a simple wrapper around the timespec struct that also keeps track of // whether the time is in realtime or monotonic time. class AbsTimeout { … }; } // namespace internal } // namespace LIBC_NAMESPACE_DECL #endif // LLVM_LIBC_SRC___SUPPORT_TIME_LINUX_ABS_TIMEOUT_H