Skip to content

Commit

Permalink
Time::Piece: Use reentrant API
Browse files Browse the repository at this point in the history
This single line magically makes this work much better under threading,
though critical section locks need to be added as well.
  • Loading branch information
khwilliamson committed Nov 20, 2023
1 parent 4c816e6 commit b7d1521
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpan/Time-Piece/Piece.xs
@@ -1,4 +1,5 @@
#define PERL_NO_GET_CONTEXT
#define PERL_REENTRANT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
Expand Down

0 comments on commit b7d1521

Please sign in to comment.