summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2023-08-10 13:28:45 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-08-10 13:29:28 -0700
commit06fded412db6e2a6c0b439c468757e9f91fac6d0 (patch)
tree29cc7af97545df287be2403b1ff6ed5f18d0220b
parentbaa0a5cd7ad9f3e25d4d149e0a7d5ae8f66b6b15 (diff)
Add StdcppWaiter to the end of the list of waiter implementations
Since ABSL_INTERNAL_HAVE_STDCPP_WAITER is defined on all systems it is effectively a fallback. I left the condition there in case we have to disable it on some platform in the future. PiperOrigin-RevId: 555629066 Change-Id: I76ca78c7f36d1d02dc4950a44c66903a2aaf2a52
-rw-r--r--absl/synchronization/internal/waiter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/synchronization/internal/waiter.h b/absl/synchronization/internal/waiter.h
index 1a8b0b83..6ba204be 100644
--- a/absl/synchronization/internal/waiter.h
+++ b/absl/synchronization/internal/waiter.h
@@ -40,6 +40,8 @@
#define ABSL_WAITER_MODE ABSL_WAITER_MODE_SEM
#elif defined(ABSL_INTERNAL_HAVE_PTHREAD_WAITER)
#define ABSL_WAITER_MODE ABSL_WAITER_MODE_CONDVAR
+#elif defined(ABSL_INTERNAL_HAVE_STDCPP_WAITER)
+#define ABSL_WAITER_MODE ABSL_WAITER_MODE_STDCPP
#else
#error ABSL_WAITER_MODE is undefined
#endif