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

Check resources prior to running tasks #3297

Conversation

m-m-adams
Copy link
Collaborator

Make sure that all of a tasks resources are available before trying to start it

This avoids deadlock from two tasks waiting on each other (it's essentially priority ceiling if all tasks had the same priority) as well as preventing multiple access to single resources

# Conflicts:
#	src/OSLikeStuff/task_scheduler/task_scheduler.cpp
Copy link
Contributor

github-actions bot commented Jan 18, 2025

Test Results

107 tests  +1   107 ✅ +1   0s ⏱️ ±0s
 16 suites ±0     0 💤 ±0 
 16 files   ±0     0 ❌ ±0 

Results for commit 4f9de5c. ± Comparison against base commit f8a9c57.

♻️ This comment has been updated with latest results.

@m-m-adams m-m-adams force-pushed the bugfix/check_resources_before_starting_tasks branch from 3ec0600 to 87cb47e Compare January 18, 2025 22:43
Copy link
Collaborator

@stellar-aria stellar-aria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending prefixing those defines so we don't accidentally end up with collisions

src/OSLikeStuff/scheduler_api.h Outdated Show resolved Hide resolved
@m-m-adams m-m-adams force-pushed the bugfix/check_resources_before_starting_tasks branch from c02e0e4 to 5a82c83 Compare January 19, 2025 00:37
@stellar-aria stellar-aria added this pull request to the merge queue Jan 19, 2025
@stellar-aria stellar-aria removed this pull request from the merge queue due to a manual request Jan 19, 2025
@stellar-aria
Copy link
Collaborator

@m-m-adams looks like the tests need to be updated now

@stellar-aria stellar-aria added this pull request to the merge queue Jan 19, 2025
Merged via the queue into SynthstromAudible:community with commit d37eb1f Jan 19, 2025
6 checks 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.

2 participants