Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Issue 1949673003: [battor agent] Makes the main() thread also be the UI thread (Closed)

Created:
4 years, 7 months ago by charliea (OOO until 10-5)
Modified:
4 years, 7 months ago
CC:
chromium-reviews, rnephew (Wrong account)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[battor agent] Makes the main() thread also be the UI thread This requires changes to the threading model because, before, we were allowed to block the main() thread until each of the tracing commands returned. Now that we're using the main() thread as the UI thread, there's an expectation that it won't block while the command is executing (because at some point the IO thread might delegate back to the IO thread for a task, resulting in a deadlock). This fixes a bug on Windows where a MessageWindow that was created on the UI thread was check failing on exit because it was expecting to be destroyed on the same thread. This happened every time that the agent shut down on Windows. BUG=603309 Committed: https://crrev.com/e0d672480e8c352a0f7ab4d67a87d58bb543d943 Cr-Commit-Position: refs/heads/master@{#391599}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Synced to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -75 lines) Patch
M tools/battor_agent/battor_agent_bin.cc View 1 2 10 chunks +80 lines, -75 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
charliea (OOO until 10-5)
4 years, 7 months ago (2016-05-03 21:57:11 UTC) #7
oystein (OOO til 10th of July)
https://codereview.chromium.org/1949673003/diff/60001/tools/battor_agent/battor_agent_bin.cc File tools/battor_agent/battor_agent_bin.cc (right): https://codereview.chromium.org/1949673003/diff/60001/tools/battor_agent/battor_agent_bin.cc#newcode144 tools/battor_agent/battor_agent_bin.cc:144: base::WaitableEvent done(false, false); Is this actually needed, if all ...
4 years, 7 months ago (2016-05-04 16:52:11 UTC) #8
charliea (OOO until 10-5)
https://codereview.chromium.org/1949673003/diff/60001/tools/battor_agent/battor_agent_bin.cc File tools/battor_agent/battor_agent_bin.cc (right): https://codereview.chromium.org/1949673003/diff/60001/tools/battor_agent/battor_agent_bin.cc#newcode144 tools/battor_agent/battor_agent_bin.cc:144: base::WaitableEvent done(false, false); On 2016/05/04 16:52:11, Oystein wrote: > ...
4 years, 7 months ago (2016-05-04 17:48:22 UTC) #9
oystein (OOO til 10th of July)
lgtm
4 years, 7 months ago (2016-05-04 17:50:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949673003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949673003/80001
4 years, 7 months ago (2016-05-04 17:59:08 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/60891) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 7 months ago (2016-05-04 18:04:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949673003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949673003/120001
4 years, 7 months ago (2016-05-04 18:31:36 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 7 months ago (2016-05-04 19:26:00 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 19:27:33 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e0d672480e8c352a0f7ab4d67a87d58bb543d943
Cr-Commit-Position: refs/heads/master@{#391599}

Powered by Google App Engine
This is Rietveld 408576698