mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
New API to set default thread attributes
This patch introduces two new convenience functions to set the default thread attributes used for creating threads. This allows a programmer to set the default thread attributes just once in a process and then run pthread_create without additional attributes.
This commit is contained in:
@ -24,6 +24,9 @@
|
||||
provide any. */
|
||||
struct pthread_attr __default_pthread_attr attribute_hidden;
|
||||
|
||||
/* Mutex protecting __default_pthread_attr. */
|
||||
int __default_pthread_attr_lock = LLL_LOCK_INITIALIZER;
|
||||
|
||||
/* Flag whether the machine is SMP or not. */
|
||||
int __is_smp attribute_hidden;
|
||||
|
||||
|
Reference in New Issue
Block a user