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

Issue 7529003: Make base::MessageLoops have names at construction time (Closed)

Created:
9 years, 4 months ago by nduca
Modified:
9 years, 4 months ago
Reviewers:
brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, brettw-cc_chromium.org
Visibility:
Public.

Description

Make binding of a thread to an existing message loops be done at Thread construction time. This makes it possible for base::thread to tell debuggers/tracing systems the name of a thread, which was previously impossible because base::Thread didn't know at construction time whether the thread existed or not.

Patch Set 1 #

Patch Set 2 : Add name argument to MessageLoop #

Total comments: 1

Patch Set 3 : Make message loop name optional. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -54 lines) Patch
M base/message_loop.h View 1 2 4 chunks +7 lines, -8 lines 0 comments Download
M base/message_loop.cc View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M base/threading/thread.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/profile_import/profile_import_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/service/service_main.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/plugin/plugin_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/ppapi_plugin/ppapi_broker_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M content/utility/utility_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M content/worker/worker_main.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M remoting/jingle_glue/jingle_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
nduca
9 years, 4 months ago (2011-07-28 19:24:09 UTC) #1
brettw
I don't quite follow the CL description. What was previously impossible? It looks like this ...
9 years, 4 months ago (2011-07-29 17:04:12 UTC) #2
nduca
Sorry about that! The high level proposal I had here was to try to centralize ...
9 years, 4 months ago (2011-08-02 01:08:55 UTC) #3
nduca
Ok, patch uploaded. http://codereview.chromium.org/7529003/diff/3001/base/message_loop.h File base/message_loop.h (right): http://codereview.chromium.org/7529003/diff/3001/base/message_loop.h#newcode110 base/message_loop.h:110: explicit MessageLoop(const char* thread_name, Type type ...
9 years, 4 months ago (2011-08-02 01:26:39 UTC) #4
brettw
On Windows, I've always seen thread names in the debugger. Is this necessary for other ...
9 years, 4 months ago (2011-08-02 18:06:01 UTC) #5
nduca
On 2011/08/02 18:06:01, brettw wrote: > On Windows, I've always seen thread names in the ...
9 years, 4 months ago (2011-08-02 18:36:20 UTC) #6
nduca
9 years, 4 months ago (2011-08-02 19:27:19 UTC) #7
Hmm, some potentially new ideas coming from a brainstorm with Siggi. I'm going
to ditch this codereview.

Powered by Google App Engine
This is Rietveld 408576698