mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
775aa4f594
A completed fence callback is set in Rutabaga. When the callback is executed, the descriptor associated with the fence is immediately marked as used and the control queue is signalled. As of now, the callback is still called in the main worker thread when poll_fence() is executed, but once we enable the async callback feature in virglrenderer, the callback might be called from another thread. This is the reason everything is protected with mutexes. The completed_fences hash map keeps track of the latest completed fence for each context to avoid any race condition. Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Change-Id: I6f3f55d21b7f4722721bdc2b16da1b39bae4ff7e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2845984 Reviewed-by: Kaiyi Li <kaiyili@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |