mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 20:53:04 +02:00
threading: add temporary semaphore aliases
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user