pw_thread_freertos: adds thread creation
Adds pw::thread::Thread creation for FreeRTOS.
Note that this also refactors the pw_thread thread facade tests
to use binary semaphores and adds a helper method to re-use
test threads even if detached. Note that this is by definition
flaky without join, ergo excessive target specific sleeps are
used when needed.
Change-Id: I3f2344c7a6ddbafa6781914991d6378e05ad0106
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30921
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
diff --git a/pw_thread/BUILD b/pw_thread/BUILD
index 073897c..fb892c0 100644
--- a/pw_thread/BUILD
+++ b/pw_thread/BUILD
@@ -164,6 +164,8 @@
":thread",
":id",
":test_threads_header",
+ "//pw_chrono:system_clock",
+ "//pw_sync:binary_semaphore",
"//pw_unit_test",
],
)