Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed race condition at the edge of builds. Using queue channel.
The last loop collecting the remaining objectFiles may be run before the last jobs completes. This commit replaces the two channels used to fill objectFiles and to signal error with direct variable access guarded by mutex, this avoids race conditions at the end and streamlines the whole process. Also added a 'queue' channel to feed the goroutines, this is not strictly part of the fix, but helps to fairly distribute the workload.
- Loading branch information
Showing
1 changed file
with
43 additions
and
43 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