aboutsummaryrefslogtreecommitdiffstats
path: root/generate-binding-glue.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r--generate-binding-glue.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/generate-binding-glue.py b/generate-binding-glue.py
index a489b63..82f71ae 100644
--- a/generate-binding-glue.py
+++ b/generate-binding-glue.py
@@ -49,6 +49,7 @@ def emit_func_impl(api, f):
def emit_func(api, f):
p('void %(impl_name)s(afb_req req) noexcept {' % f)
+ p(' std::lock_guard<std::mutex> guard(binding_m);')
p(' if (g_afb_instance == nullptr) {',
' afb_req_fail(req, "failed", "Binding not initialized, did the compositor die?");',
' return;',