Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcore|TaskPool: Redesigned shutdown procedure
Previously TaskPool's destructor waited until all the tasks were finished. Now, the public TaskPool is deleted immediately and the private instance will wait for the tasks to report themselves finished. Only after this the private instance deletes itself. Note: When encountering a crash involving mutex unlocking, check that a Guarded object isn't deleted during the guarding. Also cleaned up the friend relationship between Task/TaskPool.
- Loading branch information
Showing
4 changed files
with
57 additions
and
28 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
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