Merge lp://qastaging/~mhr3/unity/background-icon-loading into lp://qastaging/unity
Proposed by
Michal Hruby
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gord Allott | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1860 | ||||
Proposed branch: | lp://qastaging/~mhr3/unity/background-icon-loading | ||||
Merge into: | lp://qastaging/unity | ||||
Diff against target: |
501 lines (+285/-89) 3 files modified
plugins/unityshell/src/IconLoader.cpp (+89/-89) tests/CMakeLists.txt (+5/-0) tests/test_icon_loader.cpp (+191/-0) |
||||
To merge this branch: | bzr merge lp://qastaging/~mhr3/unity/background-icon-loading | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gord Allott (community) | Approve | ||
Sam Spilsbury (community) | Approve | ||
Review via email:
|
Description of the change
Move all icon loading into background gio threads. (there was mainly issue with gtk_icon_
To post a comment you must log in.
All ok on the code and testing.
161 + // careful here this is running in non-main thread
162 + if (task->icon_info)
163 + {
Maybe here you might want to use mutexes to synchronize the threads ? I'm not sure about the exact semantics of g_io_scheduler_ push_job - if it processes jobs in serial or parallel.