diff options
author | Derek Mauro <dmauro@google.com> | 2023-02-01 08:24:55 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-01 08:25:49 -0800 |
commit | 7c7cafef4ff11979a26702080a2a4bf0dad7d856 (patch) | |
tree | 99968e37829bea518b344d13e286bd54508aa656 /absl/synchronization/internal | |
parent | 385ad37dac01bb65a2cef93565fd3731b142b702 (diff) |
Delete unused Futex methods
PiperOrigin-RevId: 506323250
Change-Id: I0f7d4532c19088b011740ceff87ecec55cc34edb
Diffstat (limited to 'absl/synchronization/internal')
-rw-r--r-- | absl/synchronization/internal/futex.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/absl/synchronization/internal/futex.h b/absl/synchronization/internal/futex.h index cb97da09..9cf9841d 100644 --- a/absl/synchronization/internal/futex.h +++ b/absl/synchronization/internal/futex.h @@ -110,19 +110,6 @@ class FutexImpl { return 0; } - static int WaitBitsetAbsoluteTimeout(std::atomic<int32_t> *v, int32_t val, - int32_t bits, - const struct timespec *abstime) { - // NOLINTNEXTLINE(runtime/int) - long err = syscall(SYS_futex, reinterpret_cast<int32_t*>(v), - FUTEX_WAIT_BITSET | FUTEX_PRIVATE_FLAG, val, abstime, - nullptr, bits); - if (ABSL_PREDICT_FALSE(err != 0)) { - return -errno; - } - return 0; - } - static int Wake(std::atomic<int32_t> *v, int32_t count) { // NOLINTNEXTLINE(runtime/int) long err = syscall(SYS_futex, reinterpret_cast<int32_t*>(v), @@ -132,18 +119,6 @@ class FutexImpl { } return 0; } - - // FUTEX_WAKE_BITSET - static int WakeBitset(std::atomic<int32_t> *v, int32_t count, int32_t bits) { - // NOLINTNEXTLINE(runtime/int) - long err = syscall(SYS_futex, reinterpret_cast<int32_t*>(v), - FUTEX_WAKE_BITSET | FUTEX_PRIVATE_FLAG, count, nullptr, - nullptr, bits); - if (ABSL_PREDICT_FALSE(err < 0)) { - return -errno; - } - return 0; - } }; class Futex : public FutexImpl {}; |