RAII helper that initializes COM for the current thread.

Synopsis

Declared in <llvm/Support/COM.h>

class InitializeCOMRAII;

Description

On Windows, construction calls CoInitializeEx and destruction calls CoUninitialize. On other platforms this is a no‐op.

Member Functions

Name

Description

InitializeCOMRAII [constructor]

Initialize COM for the current thread with the given threading mode.

~InitializeCOMRAII [destructor]

Uninitialize COM for the current thread.

Created with MrDocs