Skip to content

Commit

Permalink
XXX perl.h: Debugging mutex lock'
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 6, 2021
1 parent eef91b4 commit d8307d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions perl.h
Expand Up @@ -6723,6 +6723,23 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
MUTEX_DESTROY(&PL_locale_mutex); \
LOCALE_TERM_POSIX_2008_; \
} STMT_END
# if 0
/*dTHX;*/\
LOCALE_TERM_POSIX_2008_; \
/*{ char buf[1024]; \
Size_t len = my_snprintf(buf, sizeof(buf), \
"%s: %d: terminaing locale %p\n", \
__FILE__, __LINE__, &PL_locale_mutex); \
PERL_UNUSED_RESULT(PerlLIO_write(2, buf, len));};*/ \
/*Perl_set_numeric_standard(aTHX);*/ \
/*DEBUG_L( PerlIO_printf(Perl_debug_log, \
"%s: %d: now standard=%p\n", \
__FILE__, __LINE__, &PL_locale_mutex););*/ \
MUTEX_DESTROY(&PL_locale_mutex); \
/*DEBUG_L(PerlIO_printf(Perl_debug_log, \
"%s: %dabout to destroy=%p\n", \
__FILE__, __LINE__, &PL_locale_mutex));*/
# endif
#endif

#ifndef LOCALE_LOCK_
Expand Down

0 comments on commit d8307d9

Please sign in to comment.