[component_manager] reduce scope of mutex around realms
Instead of using Arc<Mutex<Realm>> everywhere, move the mutex to the internals of the Realm struct and only lock it when accessing mutable data. Change-Id: I4e8a745104e26c4f0555e1c5577d05a6fa52403e
Showing
- src/sys/component_manager/src/model/component.rs 43 additions, 27 deletionssrc/sys/component_manager/src/model/component.rs
- src/sys/component_manager/src/model/model.rs 31 additions, 40 deletionssrc/sys/component_manager/src/model/model.rs
- src/sys/component_manager/src/model/routing.rs 10 additions, 13 deletionssrc/sys/component_manager/src/model/routing.rs
- src/sys/component_manager/src/model/tests/binding.rs 21 additions, 21 deletionssrc/sys/component_manager/src/model/tests/binding.rs
Loading
Please register or sign in to comment