SVT-HEVC
SVT-HEVC copied to clipboard
fix the hang caused by pthread_cancel
Signed-off-by: Jing Li [email protected]
Description
pthread_cancel is an async call, need to join() before next move, otherwise it may crash.
Issue
If init/deinit for about 150 times with default input parameter, will crash at set_thread_affinity()
Author(s)
Performance impact
- [ ] quality
- [ ] memory
- [ ] speed
- [ ] 8 bit
- [ ] 10 bit
- [x] N/A
Merge method
- [x] Allow the maintainer to squash and merge when PR is ready to create a 1-commit to the master branch. The maintainer will be able to fix typos / combine commit messages to create a more readable 1-commit message or use whatever is stated in the 'Description' section
- [ ] I will clean up my commits and the maintainer shall use 'rebase and merge' to the master branch
@lijing0010 you need to put an x
in between one of the boxes at the bottom
Hi @lijing0010 , before we remove setting thread priority code, how about making this clean up first? Could you review? Thank you.