Commit Graph

3 Commits

Author SHA1 Message Date
Wyatt Hepler
f298de4260 pw_assert: Switch to the new header names
Bug: 350
Change-Id: Ia395cebedba24c9463e558059ebdb516759253e2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38740
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-04-30 00:33:37 +00:00
Ewout van Bekkum
86c25478ba embos: fix for_at_least contract to add one tick
Fixes the embOS backends for pw::sync::Mutex,
pw::sync::BinarySemaphore, pw::sync::CountingSemaphore, and
pw::this_thread::sleep_for to add one tick when invoking the native
API to comply with the for_at_least contract as we do not know how
far we are into the current tick.

Note this is not observable without the use of an independent clock.

This also adds explicit downcasting from int64_t to OS_TIME ticks
when invoking native APIs.

Change-Id: I113cbdfc1a88795df87223117e65a763ae050772
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/37280
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-03-13 00:55:45 +00:00
Ewout van Bekkum
8b72a5736a pw_thread_embos: adds pw::this_thread support
Adds thread identification, yield, and sleep support for embOS v4.

Change-Id: I9ed552cf83035b4589740f88283b335194dcdc1a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/36421
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-03-10 01:53:57 +00:00