Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Originally, this had a pthread_testcancel in the thread, and pthread_cancel in the controlling code. I have changed this to get the same sort of controlled thread shutdown that it used to have by putting in a flag for "processQueue". When you want to exit that thread, tell it not to process anymore, and next time the thread loops, it will exit (just like before with the testcancel at the head of the loop).
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters