From 31692d105e2392d2453e87a8cddde10112173f5e Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:15:57 +0200 Subject: [PATCH] dbg_handler_set: add mutex --- src/dbg/dbg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dbg/dbg.c b/src/dbg/dbg.c index 868372800..0e84cf3d2 100644 --- a/src/dbg/dbg.c +++ b/src/dbg/dbg.c @@ -91,8 +91,10 @@ void dbg_close(void) */ void dbg_handler_set(dbg_print_h *ph, void *arg) { + dbg_lock(); dbg.ph = ph; dbg.arg = arg; + dbg_unlock(); }