X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=thread.h;h=206a5c508e13f828577b9b49565d0953d3d8ce7a;hb=50588fdeefaaa7117c6e7bd89a92fc19a3dba2b1;hp=82343607c110fa28e61a38c3daa02de44632d825;hpb=4755096ec61711c5104ba0b6b9314f32ca0351fe;p=p5sagit%2Fp5-mst-13.2.git diff --git a/thread.h b/thread.h index 8234360..206a5c5 100644 --- a/thread.h +++ b/thread.h @@ -251,7 +251,7 @@ # define ALLOC_THREAD_KEY \ STMT_START { \ if (pthread_key_create(&PL_thr_key, 0)) { \ - fprintf(stderr, "panic: pthread_key_create"); \ + PerlIO_printf(PerlIO_stderr(), "panic: pthread_key_create"); \ exit(1); \ } \ } STMT_END @@ -282,6 +282,8 @@ # define UNLOCK_CRED_MUTEX MUTEX_UNLOCK(&PL_cred_mutex) # define LOCK_FDPID_MUTEX MUTEX_LOCK(&PL_fdpid_mutex) # define UNLOCK_FDPID_MUTEX MUTEX_UNLOCK(&PL_fdpid_mutex) +# define LOCK_SV_LOCK_MUTEX MUTEX_LOCK(&PL_sv_lock_mutex) +# define UNLOCK_SV_LOCK_MUTEX MUTEX_UNLOCK(&PL_sv_lock_mutex) /* Values and macros for thr->flags */ #define THRf_STATE_MASK 7 @@ -385,6 +387,14 @@ typedef struct condpair { # define UNLOCK_FDPID_MUTEX #endif +#ifndef LOCK_SV_LOCK_MUTEX +# define LOCK_SV_LOCK_MUTEX +#endif + +#ifndef UNLOCK_SV_LOCK_MUTEX +# define UNLOCK_SV_LOCK_MUTEX +#endif + /* THR, SET_THR, and dTHR are there for compatibility with old versions */ #ifndef THR # define THR PERL_GET_THX