Skip to contentSkip to conversation

conga/ricci/common Thread.cpp

Cluster-devel [email protected] 1 participant 1 message Sep 7, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-07 19:08:09

Modified files:
ricci/common : Thread.cpp

Log message:
decreate thread stack size to something more reasonable

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/Thread.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4

ricci/common/Thread.cpp +5 -1
@@ -57,7 +57,11 @@
 			_stop = false;
 		}
 
-		int ret = pthread_create(&_thread, NULL, start_thread, this);
+		pthread_attr_t a;
+		pthread_attr_init(&a);
+		pthread_attr_setstacksize(&a, (1 << 18));
+		int ret = pthread_create(&_thread, &a, start_thread, this);
+		pthread_attr_destroy(&a);
 		if (ret == 0)
 			_running = true;
 		else