ProteoWizard
|
Singleton used to initialize and uninitialize COM once per thread. More...
#include <COMInitializer.hpp>
Static Public Member Functions | |
static bool | initialize () |
If COM is not yet initialized on the calling thread, initializes COM and returns true If COM is already initialized on the calling thread, increments reference count and returns false. | |
static bool | uninitialize () |
If COM is not initialized on the calling thread, does nothing and returns false If COM is initialized on the calling thread, decreases reference count: If reference count is 0, uninitializes COM and return true, otherwise returns false. |
Singleton used to initialize and uninitialize COM once per thread.
Definition at line 35 of file COMInitializer.hpp.
|
static |
If COM is not yet initialized on the calling thread, initializes COM and returns true If COM is already initialized on the calling thread, increments reference count and returns false.
Referenced by testThreadSafetyWorker().
|
static |
If COM is not initialized on the calling thread, does nothing and returns false If COM is initialized on the calling thread, decreases reference count: If reference count is 0, uninitializes COM and return true, otherwise returns false.
Referenced by testThreadSafetyWorker().