[roll] Roll fuchsia [examples] std::sync -> fuchsia_sync
The behaviors of fuchsia_sync's locks are very similar to those from
the standard library. std::sync::Mutex is a port of the libsync
mutex that fuchsia_sync::Mutex links against, and fuchsia_sync::RwLock
is very similar to the std::sync::RwLock's futex-based approach. However
there are some important differences:
1. fuchsia_sync supports lock cycle detection which surfaces many
deadlocks. See the documentation[0] for more details.
2. fuchsia_sync doesn't support lock poisoning because most of Fuchsia's
code is compiled with panic=abort.
a. saves memory with smaller types
b. avoids noop error handling syntax and branches
[0]: https://fuchsia.dev/fuchsia-src/development/debugging/lock_cycles
Original-Bug: 465178981
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1439900
Original-Revision: 2d8889fc98bb1ee07580ab61dfdcbbb835fca2b0
GitOrigin-RevId: f30c0574d90a5ac46e8a0f6057784e62c7048439
Change-Id: I18d3b06986b0e2e27dd2def440c0b8ffd8491775
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.