| 311 | std::mutex g_python_operator_mutex; |
| 312 | |
| 313 | nb::object get_python_operator_instance(const std::string& id) { |
| 314 | std::lock_guard lock(g_python_operator_mutex); |
| 315 | auto it = g_python_operator_instances.find(id); |
| 316 | if (it != g_python_operator_instances.end()) { |
| 317 | return it->second; |
| 318 | } |
| 319 | return nb::none(); |
| 320 | } |
| 321 | |
| 322 | void store_python_operator_instance(const std::string& id, nb::object instance) { |
| 323 | std::lock_guard lock(g_python_operator_mutex); |
no test coverage detected