| 360 | } |
| 361 | |
| 362 | void remember_python_bridge_failure(const std::string& detail) { |
| 363 | bool expected = false; |
| 364 | if (g_python_bridge_failed.compare_exchange_strong(expected, true, std::memory_order_acq_rel)) { |
| 365 | std::lock_guard lock(g_python_bridge_failure_mutex); |
| 366 | g_python_bridge_failure_detail = detail; |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | std::string python_bridge_failure_detail() { |
| 371 | std::lock_guard lock(g_python_bridge_failure_mutex); |
no outgoing calls
no test coverage detected