mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Don't use spinlocks until FB3.
This commit is contained in:
parent
25a5a11877
commit
aa7a83fa99
@ -1176,7 +1176,7 @@ void MemoryPool::deletePool(MemoryPool* pool)
|
||||
pool->decrement_mapping(pool->mapped_memory);
|
||||
|
||||
// Free mutex
|
||||
pool->lock.~Spinlock();
|
||||
pool->lock.~Mutex();
|
||||
|
||||
// Order of deallocation is of significance because
|
||||
// we delete our pool in process
|
||||
|
@ -225,8 +225,8 @@ private:
|
||||
// accounted locally, i.e. redirect_amount and parent_redirected linked list
|
||||
// are synchronized with parent pool mutex only. All other pool members are
|
||||
// synchronized with this mutex.
|
||||
Spinlock lock;
|
||||
|
||||
Mutex lock;
|
||||
|
||||
// Current usage counters for pool. Used to move pool to different statistics group
|
||||
AtomicCounter used_memory;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user