mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
Allow setstacksize to fail. (#304790, Michael Banck)
2005-06-09 Matthias Clasen <mclasen@redhat.com> * gthread-posix.c (g_thread_create_posix_impl): Allow setstacksize to fail. (#304790, Michael Banck)
This commit is contained in:
committed by
Matthias Clasen
parent
f928d83482
commit
f15bb122ce
@@ -307,7 +307,9 @@ g_thread_create_posix_impl (GThreadFunc thread_func,
|
||||
if (stack_size)
|
||||
{
|
||||
stack_size = MAX (g_thread_min_stack_size, stack_size);
|
||||
posix_check_cmd (pthread_attr_setstacksize (&attr, stack_size));
|
||||
/* No error check here, because some systems can't do it and
|
||||
* we simply don't want threads to fail because of that. */
|
||||
pthread_attr_setstacksize (&attr, stack_size);
|
||||
}
|
||||
#endif /* HAVE_PTHREAD_ATTR_SETSTACKSIZE */
|
||||
|
||||
|
Reference in New Issue
Block a user