8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 03:23:03 +01:00
This commit is contained in:
robocop 2005-04-28 05:28:41 +00:00
parent 44629e5904
commit 001c0efc0d

View File

@ -231,7 +231,7 @@ THREAD_ENTRY_DECLARE threadStart(THREAD_ENTRY_PARAM arg) {
fb_assert(arg);
Firebird::ContextPoolHolder mainThreadContext(getDefaultMemoryPool());
{
ThreadPriorityScheduler* tps = static_cast<ThreadPriorityScheduler*>(arg);
ThreadPriorityScheduler* tps = static_cast<ThreadPriorityScheduler*>(arg);
try {
tps->run();
}
@ -338,8 +338,6 @@ void ThreadData::start(ThreadEntryPoint* routine,
#else
long stack_size;
state = pthread_attr_create(&pattr);
if (state)
Firebird::system_call_failed::raise("pthread_attr_create", state);
@ -352,7 +350,7 @@ void ThreadData::start(ThreadEntryPoint* routine,
The following code sets threads stack size up to 256K if the
default stack size is less than this number
*/
stack_size = pthread_attr_getstacksize(pattr);
const long stack_size = pthread_attr_getstacksize(pattr);
if (stack_size == -1)
Firebird::system_call_failed::raise("pthread_attr_getstacksize");