From ce0e07cdb1f623e768b4891b7e2cd9317ba236d9 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 10 Nov 2023 13:44:37 -0500 Subject: [PATCH] Add task notify support to CrossplatformThread --- include/okapi/api/coreProsAPI.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/okapi/api/coreProsAPI.hpp b/include/okapi/api/coreProsAPI.hpp index ab1aa6949..81a9d362b 100644 --- a/include/okapi/api/coreProsAPI.hpp +++ b/include/okapi/api/coreProsAPI.hpp @@ -92,6 +92,16 @@ class CrossplatformThread { } #endif +#ifdef THREADS_STD + std::uint32_t notify() { + return 1; + } +#else + std::uint32_t notify() { + return pros::c::task_notify(thread); + } +#endif + static std::string getName() { #ifdef THREADS_STD std::ostringstream ss;