Skip to content

Commit fd15469

Browse files
committed
threading: semaphore: remove temporary convenience types
1 parent 1f89e2a commit fd15469

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/sync.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ inline MutexType* MaybeCheckNotHeld(MutexType* m) LOCKS_EXCLUDED(m) LOCK_RETURNE
301301
//! gcc and the -Wreturn-stack-address flag in clang, both enabled by default.
302302
#define WITH_LOCK(cs, code) (MaybeCheckNotHeld(cs), [&]() -> decltype(auto) { LOCK(cs); code; }())
303303

304-
using BinarySemaphore = std::binary_semaphore;
305-
using Semaphore = std::counting_semaphore<>;
306-
307304
/** RAII-style semaphore lock */
308305
template <std::ptrdiff_t LeastMaxValue = std::counting_semaphore<>::max()>
309306
class CountingSemaphoreGrant
@@ -385,6 +382,5 @@ class CountingSemaphoreGrant
385382
};
386383

387384
using BinarySemaphoreGrant = CountingSemaphoreGrant<1>;
388-
using SemaphoreGrant = CountingSemaphoreGrant<>;
389385

390386
#endif // BITCOIN_SYNC_H

0 commit comments

Comments
 (0)