pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN); pthread_attr_setstacksize(&attr, 2 * PTHREAD_STACK_MIN); ret = pthread_create(>od_thread, &attr, gtod_thread_main, mutex); pthread_attr_destroy(&attr); if (ret) {2...
(cached) yes checking if PTHREAD_STACK_MIN is defined... yes configure: Enabling threading for preprocessCore configure: creating ./config.status config.status: creating src/Makevars ** libs /SoftWare/gcc-4.8.5/bin/gcc -std=gnu99 -I"/SoftWare/R/R-4.0.3/lib64/R/include" -DNDEBUG -I/...
Undefine PTHREAD_STACK_MIN, use the custom value 16384!" 11#define PTHREAD_STACK_MIN 16384 12#endif 13#endif 然后,在程序里,把PTHREAD_STACK_MIN宏值打印出来,结果为16384。也就是说,在limits.h头文件中没有该宏的定义。 这是怎么回事? 问题分析 首先,我检索下交叉编译器里倒底有木有宏PTHREAD_STACK_...
The Rust libraries gained a dependency on the private glibc symbol __pthread_get_minstack in #6233; it was reverted in #11331 and reinstated in #11885 (“Alright, let's merge this and then we can see how big the impact is.”). Here’s part of the impact that may not have been co...