Skip to content

Commit

Permalink
dlt-user: Fix crashes in dlt_free during dlt_init (#362)
Browse files Browse the repository at this point in the history
If dlt_free is called while dlt_init is running, the dlt-user library
crashes because the init and free where not thread safe.
This commit introduces a new field dlt_user_initialising
which will prevent entering dlt_free while dlt_init is running.
Correctness is ensured by a unit test

Signed-off-by: Alexander Mohr <[email protected]>
  • Loading branch information
alexmohr authored Jan 11, 2023
1 parent 8c3c0a2 commit 2224cdd
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 83 deletions.
Loading

0 comments on commit 2224cdd

Please sign in to comment.