Skip to content

Commit

Permalink
pw_thread: Export thread_native.h
Browse files Browse the repository at this point in the history
- Apply thread_native.h directive declaration in thread.h to avoid IWYU
check error by clang-tidy include cleaner.
- It's for using PW_THREAD_JOINING_ENABLED, which must be provided by
  the backend's thread_native header.

Change-Id: Idf86f96a8532ccbbf88744f937dde66ba22d100b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/244932
Presubmit-Verified: CQ Bot Account <[email protected]>
Pigweed-Auto-Submit: Momo Shen <[email protected]>
Reviewed-by: Wyatt Hepler <[email protected]>
Reviewed-by: Momo Shen <[email protected]>
Reviewed-by: Samuel Liu <[email protected]>
Docs-Not-Needed: Momo Shen <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Lint: Lint 🤖 <[email protected]>
  • Loading branch information
Momo Shen authored and CQ Bot Account committed Oct 28, 2024
1 parent 01d4453 commit 06d86b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pw_thread/public/pw_thread/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// clang-format off
// The backend's thread_native header must provide PW_THREAD_JOINING_ENABLED.
#include "pw_thread_backend/thread_native.h"
#include "pw_thread_backend/thread_native.h" // IWYU pragma: export
// clang-format on

namespace pw {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
// the License.
#pragma once

#include "pw_thread_stl/thread_native.h"
#include "pw_thread_stl/thread_native.h" // IWYU pragma: export

0 comments on commit 06d86b5

Please sign in to comment.