pw_thread: Fix remaining compilability issues

Compilability was broken by https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/205760.

Change-Id: Ic133703c89ee6cb0382757fc23d5c3d9a8a79e05
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/207971
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Alexey Eremin <aeremin@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
This commit is contained in:
Alexey Eremin 2024-05-02 16:20:06 +00:00 committed by CQ Bot Account
parent aa19504fac
commit 0a8168cbf0
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class StaticContext : public Context {
: stack_(stack), available_stack_size_(available_stack_size) {}
private:
friend Thread;
friend Context;
z_thread_stack_element* stack() { return stack_; }
size_t available_stack_size() { return available_stack_size_; }

View File

@ -63,7 +63,7 @@ void Context::CreateThread(const zephyr::Options& options,
native_type_out->set_thread_done(false);
native_type_out->set_thread_routine(std::move(thread_fn));
native_type_out->const k_tid_t task_handle =
const k_tid_t task_handle =
k_thread_create(&native_type_out->thread_info(),
options.static_context()->stack(),
options.static_context()->available_stack_size(),