Commit Graph

6 Commits

Author SHA1 Message Date
Ewout van Bekkum
2da13fa589 noexcept: add some noexcepts when mirroring the STL
Change-Id: If139a17461644afd0262710631ca413f38f2f66e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/31040
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-01-28 16:22:09 +00:00
Ewout van Bekkum
f680eb1df6 pw_sync_threadx: allow a custom pw::chrono::SystemClock backend
Modifies the GN implementation for pw_sync_threadx to allow a
custom backend for pw::chrono::SystemClock which is not
pw_chrono_threadx:system_clock in case the TX time capability is
not enabled in a ThreadX configuration.

Change-Id: I1a4191425b4d2679472a86a388085c0ab64bedbe
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/28560
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-01-06 21:26:57 +00:00
Ewout van Bekkum
f39d0aed92 pw_sync_threadx: fix semaphore max value
Fixes the semaphore max value constants for the ThreadX semaphore
backends in case it is limited by the ptrdiff_t max value before
the ThreadX token max value.

Change-Id: Ifba6908395a3bbd41e6314adb8fe8d91d10ad062
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/27920
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2020-12-17 18:48:39 +00:00
Ewout van Bekkum
f7e38b3ec3 pw_{sync,chrono}_threadx: Add initial ThreadX support
Adds initial ThreadX support through a set of backends for pw_sync
through pw_sync_threadx and pw_chrono through pw_chrono_threadx.

Change-Id: I3e310323cfce3d4bf07557273c2a86f91f6479d7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24900
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2020-12-08 21:54:49 +00:00
Ewout van Bekkum
27a083f736 pw_chrono_stl,pw_sync_threadx: header comment fixups
Change-Id: I933e279271331ecd7d30c9b1be9541bd15da959a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/26320
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2020-11-30 22:41:44 +00:00
Ewout van Bekkum
5bcd8c40d3 pw_sync_threadx: Add pw::sync::SpinLock backend
Adds initial ThreadX support through a SpinLock backend for
pw_sync. Note that this first backend does not support ThreadX
with SMP enabled, taking a shortcut to detect SpinLock recursion
instead.

Change-Id: I6cb4d1edfe78bc97fc632cfb353589e53f87f2c7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/25803
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-11-24 19:20:23 +00:00