Merge lp:~kdub/mir/update-bufferstream-tracker-todos into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Daniel van Vugt on 2015-05-01 |
| Approved revision: | 2515 |
| Merged at revision: | 2535 |
| Proposed branch: | lp:~kdub/mir/update-bufferstream-tracker-todos |
| Merge into: | lp:mir |
| Diff against target: |
32 lines (+3/-4) 1 file modified
src/server/frontend/buffer_stream_tracker.h (+3/-4) |
| To merge this branch: | bzr merge lp:~kdub/mir/update-bufferstream-tracker-todos |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Daniel van Vugt | Abstain on 2015-05-01 | ||
| Alexandros Frantzis (community) | Approve on 2015-04-30 | ||
| Alan Griffiths | Approve on 2015-04-28 | ||
| PS Jenkins bot | continuous-integration | Approve on 2015-04-27 | |
| Robert Carr (community) | 2015-04-27 | Approve on 2015-04-27 | |
|
Review via email:
|
|||
Commit Message
update the TODO comments in mf::BufferStrea
Description of the Change
update the TODO comments in mf::BufferStrea
| Daniel van Vugt (vanvugt) wrote : | # |
We're committing to using raw pointers? Are you sure?
17 - /* Access the buffer resource that the id corresponds to.
18 - TODO: should really be a weak or shared ptr */
19 + /* Access the buffer resource that the id corresponds to. */
20 graphics::Buffer* buffer_
| Kevin DuBois (kdub) wrote : | # |
It came up on irc yesterday that the comments are out-of-date. It seems like using a smart pointer (or a moveable resource containing the buffer perhaps) might be better, but I'm not aware of any drive to revert from the raw-ptr interfaces that we have now.
| Daniel van Vugt (vanvugt) wrote : | # |
I think that TODO should remain. In systems as complicated as Mir, raw pointers are scary and a risk...
| Alexandros Frantzis (afrantzis) wrote : | # |
> It seems like using a smart pointer (or a moveable resource containing the buffer perhaps)
> might be better, but I'm not aware of any drive to revert from the raw-ptr interfaces
> that we have now.
> I think that TODO should remain. In systems as complicated as Mir, raw pointers are scary
> and a risk...
Raw *non-owning* pointers are OK in general, but, in any case, the root cause is not in the BufferStreamTracker interface, but rather in the BufferStream/
| Daniel van Vugt (vanvugt) wrote : | # |
Bah, "TODO" or not. A simple grep can find these issues still.

PASSED: Continuous integration, rev:2515 jenkins. qa.ubuntu. com/job/ mir-ci/ 3629/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/2196 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/2195 jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/2146 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 1626 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 1626/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 2146 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 2146/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/5063 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19952
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/mir- ci/3629/ rebuild
http://