2005-06-09 Matthias Clasen <mclasen@redhat.com>
* gthread-posix.c (g_thread_create_posix_impl): Allow
setstacksize to fail. (#304790, Michael Banck)
+2005-06-09 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/threads.sgml: Document that stack size
+ will be ignored if the underlying thread implementation
+ doesn't support stack sizes.
+
2005-06-07 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt: Add g_utf8_collate_key_for_filename.
2005-06-07 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt: Add g_utf8_collate_key_for_filename.
<!-- ##### FUNCTION g_thread_create_full ##### -->
<para>
<!-- ##### FUNCTION g_thread_create_full ##### -->
<para>
-This function creates a new thread with the priority @priority. The
-stack gets the size @stack_size or the default value for the current
-platform, if @stack_size is 0.
+This function creates a new thread with the priority @priority. If the
+underlying thread implementation supports it, the thread gets a stack size
+of @stack_size or the default value for the current platform, if @stack_size is 0.
+2005-06-09 Matthias Clasen <mclasen@redhat.com>
+
+ * gthread-posix.c (g_thread_create_posix_impl): Allow
+ setstacksize to fail. (#304790, Michael Banck)
+
2005-01-07 Matthias Clasen <mclasen@redhat.com>
* === Released 2.6.1 ===
2005-01-07 Matthias Clasen <mclasen@redhat.com>
* === Released 2.6.1 ===
if (stack_size)
{
stack_size = MAX (g_thread_min_stack_size, stack_size);
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 */
}
#endif /* HAVE_PTHREAD_ATTR_SETSTACKSIZE */