commit | 6a2e670a243b815cf043f8da4d26ecb9a64d307b | [log] [tgz] |
---|---|---|
author | Hongchan Choi <hongchan@chromium.org> | Wed Oct 30 02:47:57 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Oct 30 02:47:57 2019 |
tree | c9466643a0f2763d103ef0df52efed1a1336dd22 | |
parent | ed6d1f0b4a2179dbc0899333ea9a8516bdc42b27 [diff] |
Obtain graph/process lock when nullifying the buffer in Reverb When the buffer is set to `null` while there is an active buffer within a reverb object, SetBuffer() function can prematurely nullify the `reverb_` and `shared_buffer_` while it is still being accessed by the rendering thread. This CL adds two locks (graph lock and process lock) when the buffer gets nullified to ensure the synchronization between two threads. Change-Id: I8f501b6a16b3c7e16db767e0b279a1a53d6eb290 Bug: 1019226 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888103 Commit-Queue: Hongchan Choi <hongchan@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#710627}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .