mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-08 13:01:52 +00:00
2e0e38baa4
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>
10 lines
242 B
C++
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;
|
|
}
|