From fd1546989293b110ad8d86d71f362a11dab3611c Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 8 May 2025 19:43:55 +0000 Subject: [PATCH] threading: semaphore: remove temporary convenience types --- src/sync.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sync.h b/src/sync.h index 6f2830fd93b..4e5efca4490 100644 --- a/src/sync.h +++ b/src/sync.h @@ -301,9 +301,6 @@ inline MutexType* MaybeCheckNotHeld(MutexType* m) LOCKS_EXCLUDED(m) LOCK_RETURNE //! gcc and the -Wreturn-stack-address flag in clang, both enabled by default. #define WITH_LOCK(cs, code) (MaybeCheckNotHeld(cs), [&]() -> decltype(auto) { LOCK(cs); code; }()) -using BinarySemaphore = std::binary_semaphore; -using Semaphore = std::counting_semaphore<>; - /** RAII-style semaphore lock */ template ::max()> class CountingSemaphoreGrant @@ -385,6 +382,5 @@ public: }; using BinarySemaphoreGrant = CountingSemaphoreGrant<1>; -using SemaphoreGrant = CountingSemaphoreGrant<>; #endif // BITCOIN_SYNC_H