Skip to content

Commit

Permalink
dlt-user: Fix crashes in dlt_free during dlt_init
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]>

Signed-off-by: Alexander Mohr <[email protected]>
  • Loading branch information
Alexander Mohr authored and alexmohr committed Nov 10, 2022
1 parent 0138c00 commit b8b0992
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 88 deletions.
Loading

0 comments on commit b8b0992

Please sign in to comment.