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 17, 2023
1 parent 344af8f commit 8344632
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 8344632

Please sign in to comment.