mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
Merge
This commit is contained in:
commit
41a2f90ba4
1 changed files with 4 additions and 3 deletions
|
@ -108,10 +108,11 @@ my_bool my_thread_global_init(void)
|
||||||
pthread_attr_t dummy_thread_attr;
|
pthread_attr_t dummy_thread_attr;
|
||||||
|
|
||||||
pthread_attr_init(&dummy_thread_attr);
|
pthread_attr_init(&dummy_thread_attr);
|
||||||
pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_DETACHED);
|
pthread_attr_setdetachstate(&dummy_thread_attr, PTHREAD_CREATE_JOINABLE);
|
||||||
|
|
||||||
pthread_create(&dummy_thread,&dummy_thread_attr,
|
if (pthread_create(&dummy_thread,&dummy_thread_attr,
|
||||||
nptl_pthread_exit_hack_handler, NULL);
|
nptl_pthread_exit_hack_handler, NULL) == 0)
|
||||||
|
(void)pthread_join(dummy_thread, NULL);
|
||||||
}
|
}
|
||||||
#endif /* TARGET_OS_LINUX */
|
#endif /* TARGET_OS_LINUX */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue