Skip to content

Commit

Permalink
dbg_handler_set: add mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Apr 29, 2024
1 parent 90a885f commit 31692d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbg/dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit 31692d1

Please sign in to comment.