From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci/common Thread.cpp
Date: 7 Sep 2007 19:08:09 -0000 [thread overview]
Message-ID: <20070907190809.13053.qmail@sourceware.org> (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
--- conga/ricci/common/Thread.cpp 2007/08/31 04:57:37 1.3
+++ conga/ricci/common/Thread.cpp 2007/09/07 19:08:09 1.4
@@ -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
reply other threads:[~2007-09-07 19:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070907190809.13053.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).