Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / base / win / scoped_com_initializer.h
index 392c351..92228ba 100644 (file)
@@ -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.