commit | a554ad5b0ebcfcd96e9a0d67bb346a9709c15c55 | [log] [tgz] |
---|---|---|
author | Yilong Li <liyl@google.com> | Tue Oct 27 23:58:38 2020 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Tue Oct 27 23:58:38 2020 +0000 |
tree | 0f938128d4cb6d0f127553d2969237c1a4bf1f64 | |
parent | 759bae77aa8efd4998187d974fc6daf763508d7d [diff] |
[goldfish] Synchronize pipe ID when creating new pipes. Pipe ID needs to be locked when creating new goldfish Pipes, otherwise there can be data races on that ID variable which cause flakiness in our tests. TEST=Add a new test case PipeDeviceTest.CreatePipeMultiThreading where two threads keep creating pipes and we check IDs of pipes created. Bug: 62702 Change-Id: I62fb1ba863e7c7020ebab977d02ec87db7171968 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/443515 Commit-Queue: Yilong Li <liyl@google.com> Reviewed-by: David Reveman <reveman@google.com> Testability-Review: David Reveman <reveman@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.