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

Add task notify support to CrossplatformThread #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ryan4253
Copy link

Description of the Change

Adds notify() to the CrossplatformThread, which does nothing for std::thread and is a wrapper around pros::c::notify_take(task) when a pros task is used

Motivation

This allows code that uses task notification to be testable locally by preventing having to interface with pros when notify needs to be called.

Possible Drawbacks

None

Verification Process

Ran it on the bot .The code should be simple enough too.

Applicable Issues

N/A

@Ryan4253 Ryan4253 marked this pull request as draft November 10, 2023 18:49
@Ryan4253 Ryan4253 marked this pull request as ready for review November 10, 2023 18:54
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