The Core of IUnknown

Standalone Reference Counting

To encapsulate the Lock and Unlock methods as well as the “just thread-safe enough” reference counting, ATL provides the CComObjectRootEx base class, parameterized by the desired threading model[4]:

Get ATL Internals: Working with ATL 8, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.