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

Issue 9024015: Provide windows notification of thread termination (Closed)

Created:
9 years ago by jar (doing other things)
Modified:
9 years ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Provide windows notification of thread termination [Relanding revert 114954 with fix to be compatible wit new re-linking strategy. Better care was needed in bracketing the callbacks that were used, to be sure the new linker left all items located together.] This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notification callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notification on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=siggi bug=107974, 103209 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115622

Patch Set 1 #

Patch Set 2 : Use CRT symbols to bracket array of callbacks #

Total comments: 2

Patch Set 3 : Remove reference to dllmain.cc from base test gyp list #

Patch Set 4 : Alphabetize reference to dllmain.cc in base test gyp list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -6 lines) Patch
M base/base.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A base/win/dllmain.cc View 1 1 chunk +115 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sigurður Ásgeirsson
nit: notifictaion in CL description should be notification. otherwise LGTM http://codereview.chromium.org/9024015/diff/2002/base/base.gyp File base/base.gyp (right): http://codereview.chromium.org/9024015/diff/2002/base/base.gyp#newcode130 ...
9 years ago (2011-12-22 20:04:51 UTC) #1
jar (doing other things)
Changes made per comments by siggi (includin ga bunch of typos in the description of ...
9 years ago (2011-12-22 22:04:41 UTC) #2
Sigurður Ásgeirsson
9 years ago (2011-12-22 22:07:54 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld 408576698