mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
scripted-diff: Replace CCriticalSection with RecursiveMutex
-BEGIN VERIFY SCRIPT- # Delete outdated alias for RecursiveMutex sed -i -e '/CCriticalSection/d' ./src/sync.h # Replace use of outdated alias with RecursiveMutex sed -i -e 's/CCriticalSection/RecursiveMutex/g' $(git grep -l CCriticalSection) -END VERIFY SCRIPT-
This commit is contained in:
parent
ceb789cf3a
commit
6cbe620964
28 changed files with 48 additions and 49 deletions
|
|
@ -75,7 +75,7 @@ typedef std::set<std::pair<void*, void*> > InvLockOrders;
|
|||
struct LockData {
|
||||
// Very ugly hack: as the global constructs and destructors run single
|
||||
// threaded, we use this boolean to know whether LockData still exists,
|
||||
// as DeleteLock can get called by global CCriticalSection destructors
|
||||
// as DeleteLock can get called by global RecursiveMutex destructors
|
||||
// after LockData disappears.
|
||||
bool available;
|
||||
LockData() : available(true) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue