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
1=== modified file 'src/client/mir_client_library.cpp'
2--- src/client/mir_client_library.cpp 2013-10-09 12:00:24 +0000
3+++ src/client/mir_client_library.cpp 2013-10-11 05:37:57 +0000
4@@ -35,9 +35,6 @@
5
6 namespace mcl = mir::client;
7
8-std::mutex MirConnection::connection_guard;
9-std::unordered_set<MirConnection*> MirConnection::valid_connections;
10-
11 namespace
12 {
13 class ConnectionList
14
15=== modified file 'src/client/mir_connection.cpp'
16--- src/client/mir_connection.cpp 2013-10-07 09:27:32 +0000
17+++ src/client/mir_connection.cpp 2013-10-11 05:37:57 +0000
18@@ -62,6 +62,8 @@
19 MirDisplayConfiguration* const config;
20 };
21
22+std::mutex connection_guard;
23+std::unordered_set<MirConnection*> valid_connections;
24 }
25
26 MirConnection::MirConnection() :
27
28=== modified file 'src/client/mir_connection.h'
29--- src/client/mir_connection.h 2013-08-28 03:41:48 +0000
30+++ src/client/mir_connection.h 2013-10-11 05:37:57 +0000
31@@ -156,8 +156,6 @@
32 std::shared_ptr<mir::client::LifecycleControl> const lifecycle_control;
33
34 std::shared_ptr<mir::client::SurfaceMap> surface_map;
35- static std::mutex connection_guard;
36- static std::unordered_set<MirConnection*> valid_connections;
37
38 struct SurfaceRelease;
39

Subscribers

People subscribed via source and target branches