#include "absl/synchronization/internal/sem_waiter.h"
#ifdef ABSL_INTERNAL_HAVE_SEM_WAITER
#include <semaphore.h>
#include <atomic>
#include <cassert>
#include <cstdint>
#include <cerrno>
#include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h"
#include "absl/base/internal/thread_identity.h"
#include "absl/base/optimization.h"
#include "absl/synchronization/internal/kernel_timeout.h"
namespace absl {
ABSL_NAMESPACE_BEGIN
namespace synchronization_internal {
#ifdef ABSL_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL
constexpr char SemWaiter::kName[];
#endif
SemWaiter::SemWaiter() : … { … }
#if defined(__GLIBC__) && \
(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 30))
#define ABSL_INTERNAL_HAVE_SEM_CLOCKWAIT …
#elif defined(__ANDROID_API__) && __ANDROID_API__ >= 30
#define ABSL_INTERNAL_HAVE_SEM_CLOCKWAIT …
#endif
int SemWaiter::TimedWait(KernelTimeout t) { … }
bool SemWaiter::Wait(KernelTimeout t) { … }
void SemWaiter::Post() { … }
void SemWaiter::Poke() { … }
}
ABSL_NAMESPACE_END
}
#endif