Skip to content

Commit

Permalink
pw_thread_stl: CMake build for thread creation backend
Browse files Browse the repository at this point in the history
Change-Id: I9157de888395b5de9ca1101669ad75a3d1217c27
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/266039
Reviewed-by: Alexei Frolov <[email protected]>
Lint: Lint 🤖 <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Pigweed-Auto-Submit: Wyatt Hepler <[email protected]>
Docs-Not-Needed: Wyatt Hepler <[email protected]>
  • Loading branch information
255 authored and CQ Bot Account committed Feb 10, 2025
1 parent 08bb4c4 commit f8ca28d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pw_thread_stl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ pw_add_library(pw_thread_stl.thread INTERFACE
pw_thread.thread.facade
)

pw_add_library(pw_thread_stl.thread_creation INTERFACE
HEADERS
thread_creation_public_overrides/pw_thread_backend/context.h
thread_creation_public_overrides/pw_thread_backend/options.h
thread_creation_public_overrides/pw_thread_backend/priority.h
thread_creation_public_overrides/pw_thread_backend/stack.h
PUBLIC_INCLUDES
thread_creation_public_overrides
PUBLIC_DEPS
pw_thread_stl.thread
)

# This target provides the backend for pw::this_thread::sleep_{for,until}.
pw_add_library(pw_thread_stl.sleep INTERFACE
Expand Down
1 change: 1 addition & 0 deletions pw_toolchain/host_clang/toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pw_set_backend(pw_thread.id pw_thread_stl.id)
pw_set_backend(pw_thread.yield pw_thread_stl.yield)
pw_set_backend(pw_thread.sleep pw_thread_stl.sleep)
pw_set_backend(pw_thread.thread pw_thread_stl.thread)
pw_set_backend(pw_thread.thread_creation pw_thread_stl.thread_creation)
pw_set_backend(pw_thread.test_thread_context pw_thread_stl.test_thread_context)
pw_set_backend(pw_thread.thread_iteration pw_thread_stl.thread_iteration)

Expand Down
1 change: 1 addition & 0 deletions pw_toolchain/host_gcc/toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pw_set_backend(pw_thread.id pw_thread_stl.id)
pw_set_backend(pw_thread.yield pw_thread_stl.yield)
pw_set_backend(pw_thread.sleep pw_thread_stl.sleep)
pw_set_backend(pw_thread.thread pw_thread_stl.thread)
pw_set_backend(pw_thread.thread_creation pw_thread_stl.thread_creation)
pw_set_backend(pw_thread.test_thread_context pw_thread_stl.test_thread_context)
pw_set_backend(pw_thread.thread_iteration pw_thread_stl.thread_iteration)

Expand Down

0 comments on commit f8ca28d

Please sign in to comment.