ProteoWizard
Static Public Member Functions
pwiz::util::COMInitializer Class Reference

Singleton used to initialize and uninitialize COM once per thread. More...

#include <COMInitializer.hpp>

List of all members.

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.

Detailed Description

Singleton used to initialize and uninitialize COM once per thread.

Definition at line 35 of file COMInitializer.hpp.


Member Function Documentation

static bool pwiz::util::COMInitializer::initialize ( )
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 bool pwiz::util::COMInitializer::uninitialize ( )
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().


The documentation for this class was generated from the following file: