-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be explicit about RPA CoTask lifecycle; don't use thread_local
Use of thread_local CoTask to parallelize RPA indexing was added by a recent commit: e4b01d7 The situation is fragile and there is potential for UB here due to static initialization hell. Instead, we explicitly create the CoTask in the DownloadBlocksTask thread and it lives as a DownloadBlocksTask member variable, which is more correct and less bugprone.
- Loading branch information
Showing
3 changed files
with
23 additions
and
20 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