Files
solvecraft/harness/cpp/shim/sc_shim.cpp
T
Alex Lytvynenko 2e0e38baa4 Serialize native shim calls around the shared API context
Guard common and handwritten entrypoints through native cleanup and callback restoration. Add exclusion, recursive forwarding and exception-unwind probes; p2 adds its concurrent cross-wrapper regression with the port.

Co-Authored-By: GPT-6.1-Sol <noreply@openai.com>
2026-10-17 20:33:34 +02:00

10 lines
242 B
C++

// SPDX-License-Identifier: Apache-2.0
// Shared native-call serialization; never define a per-translation-unit mutex.
#include "sc_shim.h"
std::recursive_mutex& sc_native_mutex()
{
static std::recursive_mutex mutex;
return mutex;
}