We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_num_interpreters_seen()
1 parent b39c049 commit 9ef71ecCopy full SHA for 9ef71ec
include/pybind11/detail/internals.h
@@ -420,8 +420,8 @@ inline PyThreadState *get_thread_state_unchecked() {
420
421
/// We use this counter to figure out if there are or have been multiple subinterpreters active at
422
/// any point. This must never decrease while any interpreter may be running in any thread!
423
-inline std::atomic<int> &get_num_interpreters_seen() {
424
- static std::atomic<int> counter(0);
+inline std::atomic<int64_t> &get_num_interpreters_seen() {
+ static std::atomic<int64_t> counter(0);
425
return counter;
426
}
427
0 commit comments