Merge lp:~robertcarr/mir/weak-session-for-session-mediator into lp:~mir-team/mir/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Thomas Voß | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1012 | ||||
Proposed branch: | lp:~robertcarr/mir/weak-session-for-session-mediator | ||||
Merge into: | lp:~mir-team/mir/trunk | ||||
Diff against target: |
222 lines (+60/-41) 5 files modified
include/server/mir/frontend/session_mediator.h (+1/-1) include/test/mir_test_doubles/stub_shell.h (+6/-2) src/server/frontend/session_mediator.cpp (+50/-38) src/server/frontend/session_mediator_android.cpp (+2/-0) src/server/frontend/session_mediator_gbm.cpp (+1/-0) |
||||
To merge this branch: | bzr merge lp:~robertcarr/mir/weak-session-for-session-mediator | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Voß (community) | Approve | ||
Daniel van Vugt | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+181924@code.launchpad.net |
Commit message
SessionMediator must hold only a weak reference to the session.
Description of the change
This is a stab at fixing the stress test, as discussed here: https:/
The SessionMediator now holds a weak reference to the session, with only the session container holding the strong reference. I think this is in general just a more consistent application of shared_ptrs, however it also fixes the double call to close_session which is throwing from ~SessionMediator.
So far I've been able to run the stress test for 30 minutes.