mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Provide a default "minimum thread stack size" PTHREAD_STACK_MIN where it is missing.
(Currently, affects only BSD with Linuxthreads)
This commit is contained in:
parent
50ab764829
commit
d295807e88
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr,
|
|||
int rc= 0;
|
||||
|
||||
#ifndef __WIN__
|
||||
#ifndef PTHREAD_STACK_MIN
|
||||
#define PTHREAD_STACK_MIN 32768
|
||||
#endif
|
||||
/*
|
||||
Set stack size to be safe on the platforms with too small
|
||||
default thread stack.
|
||||
|
|
Loading…
Add table
Reference in a new issue