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 May 22, 2023
1 parent 000280f commit 31dbf5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpan/Time-Piece/Piece.xs
Expand Up @@ -2,6 +2,7 @@
extern "C" {
#endif
#define PERL_NO_GET_CONTEXT
#define PERL_REENTRANT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
Expand Down

0 comments on commit 31dbf5a

Please sign in to comment.