diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-21 21:27:00 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-21 21:27:00 +0000 |
commit | 3d578d1df935ad37b3f125feede89941ec21c9bf (patch) | |
tree | d4c8134ec259e9436138521f58ef1649b06b6a20 /base/win | |
parent | 6857725d2a8f23b6407a7e1ddefc9a3813fa46dd (diff) | |
download | chromium_src-3d578d1df935ad37b3f125feede89941ec21c9bf.zip chromium_src-3d578d1df935ad37b3f125feede89941ec21c9bf.tar.gz chromium_src-3d578d1df935ad37b3f125feede89941ec21c9bf.tar.bz2 |
Support COM in SequencedWorkerPool. This will be used by some code that
currently uses WorkerPool instead.
Unlike base::Thread, here COM support does not extend to running a TYPE_UI
MessageLoop, since SequencedWorkerPool doesn't use MessageLoop. I think* I
don't actually need that.
*I have no real idea. :(
BUG=251774,328135
TEST=none
R=darin@chromium.org
Review URL: https://codereview.chromium.org/242513006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win')
-rw-r--r-- | base/win/scoped_com_initializer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/win/scoped_com_initializer.h b/base/win/scoped_com_initializer.h index 392c351..92228ba 100644 --- a/base/win/scoped_com_initializer.h +++ b/base/win/scoped_com_initializer.h @@ -16,6 +16,11 @@ namespace win { // Initializes COM in the constructor (STA or MTA), and uninitializes COM in the // destructor. +// +// WARNING: This should only be used once per thread, ideally scoped to a +// similar lifetime as the thread itself. You should not be using this in +// random utility functions that make COM calls -- instead ensure these +// functions are running on a COM-supporting thread! class ScopedCOMInitializer { public: // Enum value provided to initialize the thread as an MTA instead of STA. |