Skip to content

Commit

Permalink
[datapipe] Refactor datapipe execution. JB#22475
Browse files Browse the repository at this point in the history
The datapipe_exec_xxx() helpers use O(N^2) implementation for O(N) task.
While the extra effort helps to avoid crashing if callbacks should be
removed during list traversal, it can still skip notifications if new
callbacks are registered.

Handle callback removal via invalidate immediately, garbage collect
later -mechanism. Inline helper functions to datapipe_exec_full()
and utilize O(N) list traversal.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 19, 2018
1 parent 096d869 commit aa026f1
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 251 deletions.

0 comments on commit aa026f1

Please sign in to comment.