Merge lp:~andreas-pokorny/mir/dispatchable-action-queue-and-fixes into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Andreas Pokorny on 2015-03-12 |
| Approved revision: | 2380 |
| Merged at revision: | 2394 |
| Proposed branch: | lp:~andreas-pokorny/mir/dispatchable-action-queue-and-fixes |
| Merge into: | lp:mir |
| Diff against target: |
276 lines (+227/-0) 6 files modified
include/common/mir/dispatch/action_queue.h (+53/-0) src/common/dispatch/CMakeLists.txt (+1/-0) src/common/dispatch/action_queue.cpp (+87/-0) src/common/symbols.map (+11/-0) tests/unit-tests/dispatch/CMakeLists.txt (+1/-0) tests/unit-tests/dispatch/test_action_queue.cpp (+74/-0) |
| To merge this branch: | bzr merge lp:~andreas-pokorny/mir/dispatchable-action-queue-and-fixes |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alan Griffiths | Approve on 2015-03-12 | ||
| Alberto Aguirre | Approve on 2015-03-12 | ||
| Alexandros Frantzis (community) | Approve on 2015-03-12 | ||
| Chris Halse Rogers | Approve on 2015-03-11 | ||
| Kevin DuBois (community) | 2015-03-10 | Approve on 2015-03-11 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-03-11 | |
|
Review via email:
|
|||
Commit Message
Adds ActionQueue, a simple dispatchable utility
Additionally fixes a missing mir common symbol
Description of the Change
This is another split-out from the input platform work. This includes a fix for mircommons symbols.map lacking the remove_watch symbols. A minor move and a ActionQueue which is used inside the new input platform handling code and inside stub input platform.
ActionQueue is a trivial std::function queue that implements the Dispatchable interface.
- 2378. By Andreas Pokorny on 2015-03-10
-
merged lp:mir
| Kevin DuBois (kdub) wrote : | # |
suggest-fixing:
165 + {
could save some brackets for the conditional
100 + if (pipe(pipefds) < 0)
should be pipe2(pipefds, O_CLOEXEC))... also if it was O_CLOEXEC | O_NONBLOCK, we could call the write() function without the lock dance in enqueue()
147 + return FdEvent:
126 + if (events&
spacing
| Chris Halse Rogers (raof) wrote : | # |
I think we've got enough usages of pipe2 now that we should pull mir_test/pipe.h into a utility class :).
Having said that, we really should be using an eventfd for these cases where we're just signalling. (I should go back and fix up my ones, too).
In addition to the nits picked up by Kevin:
46 + virtual FdEvents relevant_events() const override;
You've got a stray “virtual” there.
147 + return FdEvent:
You don't need to specify that you handle FdEvent::error, although it's harmless.
- 2379. By Andreas Pokorny on 2015-03-11
-
review findings addressed
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2379
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:
http://
- 2380. By Andreas Pokorny on 2015-03-11
-
removed mock_dispatchable as a separate file, not needed
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2380
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:
http://

PASSED: Continuous integration, rev:2378 jenkins. qa.ubuntu. com/job/ mir-ci/ 3183/ jenkins. qa.ubuntu. com/job/ mir-android- vivid-i386- build/1587 jenkins. qa.ubuntu. com/job/ mir-clang- vivid-amd64- build/1586 jenkins. qa.ubuntu. com/job/ mir-mediumtests -vivid- touch/1541 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 1180 jenkins. qa.ubuntu. com/job/ mir-vivid- amd64-ci/ 1180/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 1541 jenkins. qa.ubuntu. com/job/ mir-mediumtests -builder- vivid-armhf/ 1541/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mir-mediumtests -runner- mako/4557 s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 18715
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/3183/ rebuild
http://