mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
![Chun-Min Chang](/assets/img/avatar_default.png)
The custom mutex, OwnedCriticalSection, in the current code comes with the C-to-Rust translation work of cubeb_audiouniut.cpp. Its design is in C style and not fitted well in the Rust. Rust has a better mutex design. In the previous patches, all the data that may be touched on the different threads are moved into a struct wrapped by a Rust mutex. Those data will be touched in the critical sections created by the Rust mutex. Therefore, this custom mutex becomes redundant. It's time to say goodbye to it. Differential Revision: https://phabricator.services.mozilla.com/D34074 --HG-- extra : moz-landing-system : lando