mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
Check _POSIX_THREAD_ATTR_STACKSIZE before using pthread_attr_setstacksize.
2004-04-28 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-thumbnails.c: (thumbnail_thread_starter_cb): Check _POSIX_THREAD_ATTR_STACKSIZE before using pthread_attr_setstacksize. Patch from Julio Merino <jmmv@hispabsd.org>
This commit is contained in:
parent
8bb12314ab
commit
470bf185cf
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-04-28 Dave Camp <dave@ximian.com>
|
||||
|
||||
* libnautilus-private/nautilus-thumbnails.c:
|
||||
(thumbnail_thread_starter_cb): Check
|
||||
_POSIX_THREAD_ATTR_STACKSIZE before using
|
||||
pthread_attr_setstacksize. Patch from Julio Merino
|
||||
<jmmv@hispabsd.org>
|
||||
|
||||
2004-04-28 Kaushal Kumar <kaushal.kumar@wipro.com>
|
||||
|
||||
* src/nautilus-file-management-properties.c:
|
||||
|
|
|
@ -155,7 +155,9 @@ thumbnail_thread_starter_cb (gpointer data)
|
|||
pthread_attr_init (&thread_attributes);
|
||||
pthread_attr_setdetachstate (&thread_attributes,
|
||||
PTHREAD_CREATE_DETACHED);
|
||||
#ifdef _POSIX_THREAD_ATTR_STACKSIZE
|
||||
pthread_attr_setstacksize (&thread_attributes, 128*1024);
|
||||
#endif
|
||||
#ifdef DEBUG_THUMBNAILS
|
||||
g_message ("(Main Thread) Creating thumbnails thread\n");
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue