pthread_attr_setstacksize() isn't absolutely necessary
Jarkko Hietaniemi [Sat, 16 Jun 2001 23:06:55 +0000 (23:06 +0000)]
to call, only iff THREAD_CREATE_NEEDS_STACK.

p4raw-id: //depot/perl@10651

ext/Thread/Thread.xs

index b81ee26..6cdc081 100644 (file)
@@ -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)