8
0
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:
dimitr 2006-05-03 10:50:13 +00:00
parent 25a5a11877
commit aa7a83fa99
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;