File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
robotpy-wpilib/wpilib/src/rpy
robotpy-wpiutil/wpiutil/src Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ exclude_artifacts = [
13
13
" opencv-cpp"
14
14
]
15
15
16
- robotpy_build_req = " <2025.0.0 ,~=2024 .0.2 "
16
+ robotpy_build_req = " <2025.0.0b1 ,~=2025 .0.0a1 "
17
17
18
18
#
19
19
# Subproject configuration
Original file line number Diff line number Diff line change 15
15
#include " frc/Timer.h"
16
16
17
17
#include < pybind11/functional.h>
18
+ #include < gilsafe_object.h>
18
19
19
20
using namespace frc ;
20
21
using namespace pybind11 ::literals;
@@ -58,7 +59,7 @@ PyNotifier::PyNotifier(std::function<void()> handler) {
58
59
if (handler)
59
60
handler ();
60
61
}
61
- if (_Py_IsFinalizing ()) {
62
+ if (Py_IsFinalizing ()) {
62
63
release.disarm ();
63
64
}
64
65
});
Original file line number Diff line number Diff line change 1
1
2
2
#include < atomic>
3
+ #include < gilsafe_object.h>
3
4
#include < robotpy_build.h>
4
5
5
6
using OnThreadStartFn = void *(*)();
@@ -17,7 +18,7 @@ struct SafeThreadState {
17
18
std::atomic<bool > g_gilstate_managed = false ;
18
19
19
20
void *on_safe_thread_start () {
20
- if (_Py_IsFinalizing () // python is shutting down
21
+ if (Py_IsFinalizing () // python is shutting down
21
22
|| !g_gilstate_managed.load () // python has shutdown)
22
23
) {
23
24
return nullptr ;
@@ -37,7 +38,7 @@ void on_safe_thread_end(void *opaque) {
37
38
38
39
// don't cleanup if it's unsafe to do so. Several possibilities here:
39
40
if (!opaque // internal error?
40
- || _Py_IsFinalizing () // python is shutting down
41
+ || Py_IsFinalizing () // python is shutting down
41
42
|| !g_gilstate_managed.load () // python has shutdown
42
43
) {
43
44
return ;
You can’t perform that action at this time.
0 commit comments