mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-07-12 01:23:34 +00:00
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:
parent
aa19504fac
commit
0a8168cbf0
|
@ -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_; }
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user