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]>
  • Loading branch information
Alexander Mohr committed Jan 19, 2022
1 parent 0138c00 commit 2be5223
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 82 deletions.
Loading

0 comments on commit 2be5223

Please sign in to comment.