Compartilhar via


CBaseAllocator::CBaseAllocator (Compact 2013)

3/26/2014

Constructs a CBaseAllocator object.

Syntax

CBaseAllocator(
  TCHAR* pName,
  LPUNKNOWN lpUnk,
  HRESULT* phr,
  BOOL bListSemaphore = TRUE
); 

Parameters

  • pName
    Name of the allocator object.
  • lpUnk
    Pointer to LPUNKNOWN.
  • phr
    Pointer to an HRESULT for return values. This is not modified unless this member function fails.
  • bListSemaphore
    If TRUE, the free list in the allocator has a semaphore associated with it.

    If FALSE, no semaphore is created for the list.

    Setting this to FALSE can be useful for subclassing CBaseAllocator when the semaphore is not required for blocking. The semaphore is used for the waiting and signaling mechanism.

Return Value

None.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseAllocator Class