diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-31 17:17:42 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-04 16:54:02 +0200 |
commit | 89685c1f1e603d9a45ce0f3407c73e712dd7ad5a (patch) | |
tree | 6948c5a5b0a1d187035f8d51c3aec43e6daeefc2 /generate-binding-glue.py | |
parent | 45b2e667e2e0f0791b911dcfd8afa843be58e311 (diff) |
main/binding: do not allow concurrent threads in App
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r-- | generate-binding-glue.py | 1 |
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;', |