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:
Dave Camp 2004-04-28 19:49:17 +00:00 committed by Dave Camp
parent 8bb12314ab
commit 470bf185cf
2 changed files with 10 additions and 0 deletions

View file

@ -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:

View file

@ -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