|
Worker changes to prepare for lock-free shutdown.
* Make worker observe the destruction of the thread where it does work.
* Make work done signal a memeber of worker and set it when worker's working
thread is destroyed so that syncer won't be blocked indefinitely on work
that's not gonna run.
* Ref-count worker in session context so that worker remains valid when syncer
is still iterating through workers but registrar has erased it from its worker map.
* Add RequestStop() and Stopped() to allow worker to return early when it's
stopped while waiting to run work on its working thread.
This cl by itself should have no real impact because the added functions are not used.
BUG= 19757
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202786
Total comments: 24
Total comments: 4
Total comments: 13
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+298 lines, -89 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker.h
|
View
|
1
2
3
4
|
3 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker.cc
|
View
|
1
2
3
4
|
3 chunks |
+29 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.cc
|
View
|
1
2
3
4
|
4 chunks |
+37 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_model_worker.h
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_model_worker.cc
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar.h
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar.cc
|
View
|
1
2
|
2 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker.h
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker.cc
|
View
|
1
2
3
4
|
4 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/internal_components_factory_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/model_safe_worker.h
|
View
|
1
2
3
4
|
2 chunks |
+56 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/model_safe_worker.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/passive_model_worker.h
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/engine/passive_model_worker.cc
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/internal_components_factory.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/internal_components_factory_impl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/test_internal_components_factory.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/test_internal_components_factory.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_context.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/test/engine/fake_model_worker.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/fake_model_worker.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_client.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|