From d870bc94519a68a861bb0ceca19f96c6ba22fbd7 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 8 May 2025 18:30:04 +0000 Subject: [PATCH] threading: add temporary semaphore aliases --- src/sync.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sync.h b/src/sync.h index 749a368516..8c1d26c134 100644 --- a/src/sync.h +++ b/src/sync.h @@ -348,6 +348,9 @@ public: } }; +using BinarySemaphore = CSemaphore; +using Semaphore = CSemaphore; + /** RAII-style semaphore lock */ class CSemaphoreGrant { @@ -427,4 +430,7 @@ public: } }; +using BinarySemaphoreGrant = CSemaphoreGrant; +using SemaphoreGrant = CSemaphoreGrant; + #endif // BITCOIN_SYNC_H