mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 14:33:24 +09:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user