Mir

Merge lp:~thomas-voss/mir/lp-1238312 into lp:~mir-team/mir/trunk

Proposed by Thomas Voß
Status: Superseded
Proposed branch: lp:~thomas-voss/mir/lp-1238312
Merge into: lp:~mir-team/mir/trunk
Diff against target: 38 lines (+2/-5)
3 files modified
src/client/mir_client_library.cpp (+0/-3)
src/client/mir_connection.cpp (+2/-0)
src/client/mir_connection.h (+0/-2)
To merge this branch: bzr merge lp:~thomas-voss/mir/lp-1238312
Reviewer Review Type Date Requested Status
Daniel van Vugt Needs Resubmitting
Review via email: mp+190531@code.launchpad.net

This proposal has been superseded by a proposal from 2013-10-11.

Commit message

Clean up duplicate instances of the valid connections set. Remove the static instances from the header file.

Description of the change

Clean up duplicate instances of the valid connections set. Remove the static instances from the header file.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes! I should have thought of that.

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Except, wrong target branch. Please aim for development-branch.

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/client/mir_client_library.cpp'
--- src/client/mir_client_library.cpp 2013-10-09 12:00:24 +0000
+++ src/client/mir_client_library.cpp 2013-10-11 05:37:57 +0000
@@ -35,9 +35,6 @@
3535
36namespace mcl = mir::client;36namespace mcl = mir::client;
3737
38std::mutex MirConnection::connection_guard;
39std::unordered_set<MirConnection*> MirConnection::valid_connections;
40
41namespace38namespace
42{39{
43class ConnectionList40class ConnectionList
4441
=== modified file 'src/client/mir_connection.cpp'
--- src/client/mir_connection.cpp 2013-10-07 09:27:32 +0000
+++ src/client/mir_connection.cpp 2013-10-11 05:37:57 +0000
@@ -62,6 +62,8 @@
62 MirDisplayConfiguration* const config;62 MirDisplayConfiguration* const config;
63};63};
6464
65std::mutex connection_guard;
66std::unordered_set<MirConnection*> valid_connections;
65}67}
6668
67MirConnection::MirConnection() :69MirConnection::MirConnection() :
6870
=== modified file 'src/client/mir_connection.h'
--- src/client/mir_connection.h 2013-08-28 03:41:48 +0000
+++ src/client/mir_connection.h 2013-10-11 05:37:57 +0000
@@ -156,8 +156,6 @@
156 std::shared_ptr<mir::client::LifecycleControl> const lifecycle_control;156 std::shared_ptr<mir::client::LifecycleControl> const lifecycle_control;
157157
158 std::shared_ptr<mir::client::SurfaceMap> surface_map;158 std::shared_ptr<mir::client::SurfaceMap> surface_map;
159 static std::mutex connection_guard;
160 static std::unordered_set<MirConnection*> valid_connections;
161159
162 struct SurfaceRelease;160 struct SurfaceRelease;
163161

Subscribers

People subscribed via source and target branches