SVT-HEVC icon indicating copy to clipboard operation
SVT-HEVC copied to clipboard

fix the hang caused by pthread_cancel

Open lijing0010 opened this issue 3 years ago • 2 comments

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 avatar Jul 30 '20 02:07 lijing0010

@lijing0010 you need to put an x in between one of the boxes at the bottom

1480c1 avatar Jul 30 '20 02:07 1480c1

Hi @lijing0010 , before we remove setting thread priority code, how about making this clean up first? Could you review? Thank you.

tianjunwork avatar Aug 11 '20 04:08 tianjunwork