Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multi-threaded BEPEventCallback calls #5

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Dec 16, 2024

Now that this plugin is updated to depend on Aspect CLI v1.202449.18 (#4), it can be opted into multi_threaded_build_events for improved BES processing performance. When it is, it must handle concurrent calls to BEPEventCallback that may come in out-of-order of sequence number. See commit description of aspect-build/aspect-cli@082f7af for more details.

This PR sets up a besChan to pipe ordered build events into and a single go routine to process them in order. The PostBuildHook closes the channel and waits on the besHandlerWaitGroup to complete.

@gregmagolan gregmagolan merged commit 3129484 into main Dec 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant