Skip to content

Add task notify support to CrossplatformThread#13

Open
Ryan4253 wants to merge 1 commit intopurduesigbots:masterfrom
Ryan4253:master
Open

Add task notify support to CrossplatformThread#13
Ryan4253 wants to merge 1 commit intopurduesigbots:masterfrom
Ryan4253:master

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