You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a struct Middleware in C++ and I want to hold scoped_interpreter py::object and event_loop_thread as fields.
In the method initialize I have some std::thread, that will invoke some python code there.
Since it is multithreaded, I want to acquire in the thread, but it just blocks and hangs, no error is thrown, the release before the thread start didn't help as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a struct Middleware in C++ and I want to hold scoped_interpreter py::object and event_loop_thread as fields.
In the method initialize I have some std::thread, that will invoke some python code there.
Since it is multithreaded, I want to acquire in the thread, but it just blocks and hangs, no error is thrown, the release before the thread start didn't help as well.
Any suggestions please?
No other code running.
Beta Was this translation helpful? Give feedback.
All reactions