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