|
Disallow UI/IO thread blocking on any other thread.
By design, there's no ScopedAllowWait that is reachable by all code. From experience with ScopedAllowIO, it will be abused. So instead the existing callers (which should all be fixed other than two) are friends with ThreadRestrictions.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134114
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+196 lines, -34 lines) |
Patch |
 |
M |
base/synchronization/condition_variable_posix.cc
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/condition_variable_win.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/waitable_event_posix.cc
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/waitable_event_win.cc
|
View
|
|
4 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/test/thread_test_helper.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/threading/sequenced_worker_pool.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/threading/simple_thread.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
base/threading/simple_thread.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/threading/thread.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/threading/thread_restrictions.h
|
View
|
1
2
3
4
5
|
3 chunks |
+77 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/threading/thread_restrictions.cc
|
View
|
|
3 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/automation/testing_automation_provider.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/io_thread.cc
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/metrics/metrics_service.cc
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/predictor.cc
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_process_sub_thread.cc
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_helper.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/text_input_client_mac.mm
|
View
|
|
4 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_output_controller.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/file_stream_posix.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/file_stream_win.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_linux.cc
|
View
|
1
2
|
3 chunks |
+27 lines, -24 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/backend_impl.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/in_flight_io.cc
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|