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
Review URL: http://codereview.chromium.org/9024015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115622 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: f21ed6f5ea007d05256d4621ebe87c8a24a882ad
1 file changed
tree: 0b71ccf9d2492485d58879e6f48811cbf3e30f06
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/