File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ using ExceptionTranslator = void (*)(std::exception_ptr);
74
74
#define PYBIND11_TLS_DELETE_VALUE (key ) PyThread_tss_set(&(key), nullptr )
75
75
#define PYBIND11_TLS_FREE (key ) PyThread_tss_delete(&(key))
76
76
77
+ // / A smart-pointer-like wrapper around a thread-specific value. get/set of the pointer applies to
78
+ // / the current thread only.
77
79
template <typename T>
78
80
class thread_specific_storage {
79
81
public:
@@ -571,14 +573,14 @@ class internals_pp_manager {
571
573
std::unique_ptr<InternalsType> *internals_singleton_pp_;
572
574
};
573
575
574
- #if !defined(__GLIBCXX__)
575
576
// If We loaded the internals through `state_dict`, our `error_already_set`
576
577
// and `builtin_exception` may be different local classes than the ones set up in the
577
578
// initial exception translator, below, so add another for our local exception classes.
578
579
//
579
580
// libstdc++ doesn't require this (types there are identified only by name)
580
581
// libc++ with CPython doesn't require this (types are explicitly exported)
581
582
// libc++ with PyPy still need it, awaiting further investigation
583
+ #if !defined(__GLIBCXX__)
582
584
inline void check_internals_local_exception_translator (internals *internals_ptr) {
583
585
if (internals_ptr) {
584
586
for (auto et : internals_ptr->registered_exception_translators ) {
You can’t perform that action at this time.
0 commit comments