X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=thread.h;h=7ff71fad2ab3677926464f7f0083f5f8b6fdcddc;hb=e573f90328e9db84c5405db01c52908bfac9286d;hp=a4c10e79ea95deb4a0151c334365f8eb0f4afcbc;hpb=ae58ca13a14e22abe0ed3fb438d6da3c15c964b4;p=p5sagit%2Fp5-mst-13.2.git diff --git a/thread.h b/thread.h index a4c10e7..7ff71fa 100644 --- a/thread.h +++ b/thread.h @@ -1,6 +1,6 @@ /* thread.h * - * Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005 + * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, * by Larry Wall and others * * You may distribute under the terms of either the GNU General Public @@ -98,6 +98,11 @@ # define THREAD_CREATE_NEEDS_STACK (32*1024) #endif +#ifdef __VMS + /* Default is 1024 on VAX, 8192 otherwise */ +# define THREAD_CREATE_NEEDS_STACK (32*1024) +#endif + #ifdef I_MACH_CTHREADS /* cthreads interface */ @@ -333,8 +338,7 @@ #ifndef ALLOC_THREAD_KEY # define ALLOC_THREAD_KEY \ STMT_START { \ - int _eC_; \ - if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) { \ + if (pthread_key_create(&PL_thr_key, 0)) { \ write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \ exit(1); \ } \