From: Jarkko Hietaniemi Date: Sat, 16 Jun 2001 23:06:55 +0000 (+0000) Subject: pthread_attr_setstacksize() isn't absolutely necessary X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b175a5c8eb30ca3f0df883b0a8ce7ab8f995c1c1;p=p5sagit%2Fp5-mst-13.2.git pthread_attr_setstacksize() isn't absolutely necessary to call, only iff THREAD_CREATE_NEEDS_STACK. p4raw-id: //depot/perl@10651 --- diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs index b81ee26..6cdc081 100644 --- a/ext/Thread/Thread.xs +++ b/ext/Thread/Thread.xs @@ -284,8 +284,6 @@ newthread (pTHX_ SV *startsv, AV *initargs, char *classname) err = pthread_attr_setstacksize(&attr, THREAD_CREATE_NEEDS_STACK); if (err) croak("panic: pthread_attr_setstacksize failed"); -#else - croak("panic: can't pthread_attr_setstacksize"); # endif # ifdef PTHREAD_ATTR_SETDETACHSTATE if (err == 0)