mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 13:51:05 +00:00
e3b5603919
Adds a std::this_thread like API through the pw_thread facades, that is: 1) this_thread::yield 2) this_thread::sleep_{for,until} 3) this_thread::get_id This module is split into many different facades in order to let users decide what functionality they want to use as they may not always be available, for example when using opaque SDKs. In addition this provides an initial set of backends based on using the STL's std::this_thread directly and selects them for the host target. Change-Id: I0ee8e4390ba988b2b13e9ee59f976f2333715f1f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30040 Commit-Queue: Ewout van Bekkum <ewout@google.com> Reviewed-by: Keir Mierle <keir@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
9 lines
184 B
ReStructuredText
9 lines
184 B
ReStructuredText
.. _module-pw_thread_stl:
|
|
|
|
-------------
|
|
pw_thread_stl
|
|
-------------
|
|
This is a set of backends for pw_thread based on the C++ STL. It is not ready
|
|
for use, and is under construction.
|
|
|