xentara-utils v2.0.4
The Xentara Utility Library
|
A class that initializes the COM interface. More...
#include <xentara/utils/windows/com/ThreadEnvironment.hpp>
Public Types | |
enum class | ConcurrencyModel { ApartmentThreaded , MultiThreaded } |
COM concurrency models. More... | |
Public Member Functions | |
ThreadEnvironment (ConcurrencyModel concurrencyModel) | |
Constructor. | |
~ThreadEnvironment () | |
Destructor. | |
A class that initializes the COM interface.
This class prepares the current thread for use with the Component Object Model (COM).
|
strong |
COM concurrency models.
Enumerator | |
---|---|
ApartmentThreaded | The thread receives it's own single-threaded apartment. |
MultiThreaded | The thread is placed in the common multithreaded apartment. |
xentara::utils::windows::com::ThreadEnvironment::ThreadEnvironment | ( | ConcurrencyModel | concurrencyModel | ) |
Constructor.
concurrencyModel | The COM concurrency model. |
std::runtime_error | The thread environment could not be initialized |
xentara::utils::windows::com::ThreadEnvironment::~ThreadEnvironment | ( | ) |
Destructor.