summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/thread.h b/thread.h
index fdc4e8da1b..54d9866bc7 100644
--- a/thread.h
+++ b/thread.h
@@ -397,12 +397,13 @@ extern PERL_THREAD_LOCAL void *PL_current_context;
/* We must also call pthread_setspecific() always, as C++ code has to read it
* with pthreads (the #else side just below) */
-# define PERL_SET_CONTEXT(t) \
- STMT_START { \
- int _eC_; \
- if ((_eC_ = pthread_setspecific(PL_thr_key, PL_current_context = (void *)(t)))) \
+# define PERL_SET_CONTEXT(t) \
+ STMT_START { \
+ int _eC_; \
+ if ((_eC_ = pthread_setspecific(PL_thr_key, \
+ PL_current_context = (void *)(t)))) \
Perl_croak_nocontext("panic: pthread_setspecific (%d) [%s:%d]", \
- _eC_, __FILE__, __LINE__); \
+ _eC_, __FILE__, __LINE__); \
} STMT_END
#else