API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IRSCPOOL_RELEASERSC()

Brew Release
Brew MP 1.0.2
See Also
IRscPool_HoldRsc()
Description
De-associates a generic IBase pointer with the lifetime of an IRscPool, _Release()s the IBase
Params
po
[]:
Pointer to the IRscPool object
pRsc
[]:
Thing to forget
Interface
Prototype
  •    uint32 IRscPool_ReleaseRsc(IRscPool *po, IBase *pRsc);
    
Return
  • Value of -1 if the IBase could not be found in the IRscPool's resource list,
    otherwise, the return value of IBase_Release() on the resource
Side Effect
  • The IBase referenced is _Released
Comments
This method is intended to free pResource. If the caller wishes merely to remove the resource from the pool, the caller must call IBase_AddRef() on pResource before calling IRscPool_ReleaseRsc()