mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Fixed Mac build, broken by one of my previous commits
This commit is contained in:
parent
f222127d4f
commit
8613a84305
@ -124,6 +124,12 @@ Thread Thread::start(ThreadEntryPoint* routine, void* arg, int priority_arg, Han
|
||||
#if defined (LINUX) || defined (FREEBSD)
|
||||
if ((state = pthread_create(&thread, NULL, THREAD_ENTRYPOINT, THREAD_ARG)))
|
||||
Firebird::system_call_failed::raise("pthread_create", state);
|
||||
|
||||
if (!p_handle)
|
||||
{
|
||||
if ((state = pthread_detach(thread)))
|
||||
Firebird::system_call_failed::raise("pthread_detach", state);
|
||||
}
|
||||
#else
|
||||
state = pthread_attr_init(&pattr);
|
||||
if (state)
|
||||
@ -180,11 +186,6 @@ Thread Thread::start(ThreadEntryPoint* routine, void* arg, int priority_arg, Han
|
||||
#endif
|
||||
*p_handle = thread;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((state = pthread_detach(thread)))
|
||||
Firebird::system_call_failed::raise("pthread_detach", state);
|
||||
}
|
||||
|
||||
return Thread(thread);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user