8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 10:43:03 +01:00

Fixed memory pool usage.

This commit is contained in:
dimitr 2003-01-17 07:11:10 +00:00
parent 4aec77b29c
commit 8c1ae9003d

View File

@ -102,7 +102,7 @@ void ThreadPriorityScheduler::Init(void)
specific_key = TlsAlloc(); specific_key = TlsAlloc();
// memory pool for thps allocation // memory pool for thps allocation
pool = FB_NEW(*(getDefaultMemoryPool())) MemoryPool; pool = MemoryPool::createPool();
// mutex to sync linked list operations // mutex to sync linked list operations
THD_mutex_init(&mutex); THD_mutex_init(&mutex);
@ -344,7 +344,7 @@ start_label:
break; break;
} }
// cleanup // cleanup
delete pool; MemoryPool::deletePool(pool);
THD_mutex_destroy(&mutex); THD_mutex_destroy(&mutex);
TlsFree(specific_key); TlsFree(specific_key);
return 0; return 0;