Skip to content

Commit

Permalink
threads: thread_locale_init/term() needs 5.27.9 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Jul 9, 2024
1 parent 7274d7c commit 242744e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/threads/lib/threads.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use 5.008;
use strict;
use warnings;

our $VERSION = '2.40'; # remember to update version in POD!
our $VERSION = '2.41'; # remember to update version in POD!
my $XS_VERSION = $VERSION;
#$VERSION = eval $VERSION;

Expand Down Expand Up @@ -134,7 +134,7 @@ threads - Perl interpreter-based threads
=head1 VERSION
This document describes threads version 2.40
This document describes threads version 2.41
=head1 WARNING
Expand Down
4 changes: 4 additions & 0 deletions dist/threads/threads.xs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ S_ithread_run(void * arg)
S_set_sigmask(&thread->initial_sigmask);
#endif

#if PERL_VERSION_GE(5, 27, 9)
thread_locale_init();
#endif

PL_perl_destruct_level = 2;

Expand Down Expand Up @@ -689,7 +691,9 @@ S_ithread_run(void * arg)
MUTEX_UNLOCK(&thread->mutex);
MUTEX_UNLOCK(&MY_POOL.create_destruct_mutex);

#if PERL_VERSION_GE(5, 27, 9)
thread_locale_term();
#endif

/* Exit application if required */
if (exit_app) {
Expand Down

0 comments on commit 242744e

Please sign in to comment.