[Refactor] (P13): Espryt's frontend-keyed slot-table entries and the apply-thread refusals go, death notices release twins by handle, and the link ratchet refuses any '# P13' line (49 -> 36 symbols).

This commit is contained in:
2026-10-06 20:55:16 -04:00
parent 556ff46601
commit fa77b1874f
21 changed files with 492 additions and 2498 deletions
+12
View File
@@ -781,6 +781,18 @@ namespace MobileGL::MG_Pipe {
return (appliers.fetch_add(1, std::memory_order_relaxed) + 1) << 40;
}
namespace {
std::atomic<MGPipeCompileEnvChangedHook> g_compileEnvChangedHook{nullptr};
}
void MGPipeSetCompileEnvChangedHook(MGPipeCompileEnvChangedHook hook) {
g_compileEnvChangedHook.store(hook, std::memory_order_release);
}
void MGPipeNotifyCompileEnvChanged() {
if (const auto hook = g_compileEnvChangedHook.load(std::memory_order_acquire)) hook();
}
MGPipeApplierState& MGPipeApplier() {
const MGPipeApplierKeyResolver resolve = g_applierKeyResolver;
if (resolve == nullptr) return g_defaultApplier;