File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -5632,8 +5632,18 @@ typedef struct am_table_short AMTS;
5632
5632
* LC_NUMERIC_LOCK may span more operations. By always following this
5633
5633
* convention, deadlock should be impossible. But if necessary, the two
5634
5634
* mutexes could be combined */
5635
- # define LOCALE_LOCK MUTEX_LOCK (&PL_locale_mutex)
5636
- # define LOCALE_UNLOCK MUTEX_UNLOCK (&PL_locale_mutex)
5635
+ # define LOCALE_LOCK \
5636
+ STMT_START { \
5637
+ DEBUG_Lv (PerlIO_printf (Perl_debug_log, \
5638
+ " %s: %d: locking locale\n " , __FILE__, __LINE__)); \
5639
+ MUTEX_LOCK (&PL_locale_mutex); \
5640
+ } STMT_END
5641
+ # define LOCALE_UNLOCK \
5642
+ STMT_START { \
5643
+ DEBUG_Lv (PerlIO_printf (Perl_debug_log, \
5644
+ " %s: %d: unlocking locale\n " , __FILE__, __LINE__)); \
5645
+ MUTEX_UNLOCK (&PL_locale_mutex); \
5646
+ } STMT_END
5637
5647
5638
5648
# define LOCALE_TERM \
5639
5649
STMT_START { \
You can’t perform that action at this time.
0 commit comments