Public Member Functions | |
virtual void | OnBufferCreated ()=0 |
Called when a buffer is created; a buffer can be created only once. | |
virtual void | OnCustomSizedBufferCreated () |
Called when a buffer larger than poolable size is created; a buffer can be created only once. | |
virtual void | OnBufferAllocated (JetByteTools::Core::IIndexedOpaqueUserData &userData)=0 |
Called when a buffer is allocated, that is when a user requests a buffer and is given one. A buffer can be allocated multiple times, if, for example, the allocator pools buffers for reuse. Before a given buffer can be allocated again it must have been released. | |
virtual void | OnBufferAllocatedFromPool (JetByteTools::Core::IIndexedOpaqueUserData &userData) |
virtual void | OnCustomSizedBufferAllocated (JetByteTools::Core::IIndexedOpaqueUserData &userData) |
virtual void | OnBufferAllocationContention ()=0 |
Called when a buffer allocator encounters lock contention during allocation. | |
virtual void | OnBufferReleaseContention ()=0 |
Called when a buffer allocator encounters lock contention during release. | |
virtual void | OnBufferReleased (JetByteTools::Core::IIndexedOpaqueUserData &userData)=0 |
Called when a buffer is released, that is when a user no longer requires it and it returns to the allocator. A buffer should be released as many times as it is allocated. | |
virtual void | OnBufferReleasedToPool (JetByteTools::Core::IIndexedOpaqueUserData &userData) |
virtual void | OnCustomSizedBufferReleased (JetByteTools::Core::IIndexedOpaqueUserData &userData) |
virtual void | OnBufferDestroyed ()=0 |
Called when a buffer is destroyed; a buffer can be destroyed only once. | |
virtual void | OnCustomSizedBufferDestroyed () |
Protected Member Functions | |
virtual | ~IMonitorBufferAllocation () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~IMonitorBufferAllocation | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual void OnBufferCreated | ( | ) | [pure virtual] |
Called when a buffer is created; a buffer can be created only once.
Implemented in CNullBufferAllocationMonitor.
virtual void OnCustomSizedBufferCreated | ( | ) | [inline, virtual] |
Called when a buffer larger than poolable size is created; a buffer can be created only once.
Reimplemented in CNullBufferAllocationMonitor.
virtual void OnBufferAllocated | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [pure virtual] |
Called when a buffer is allocated, that is when a user requests a buffer and is given one. A buffer can be allocated multiple times, if, for example, the allocator pools buffers for reuse. Before a given buffer can be allocated again it must have been released.
Implemented in CNullBufferAllocationMonitor.
virtual void OnBufferAllocatedFromPool | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [inline, virtual] |
Reimplemented in CNullBufferAllocationMonitor.
virtual void OnCustomSizedBufferAllocated | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [inline, virtual] |
Reimplemented in CNullBufferAllocationMonitor.
virtual void OnBufferAllocationContention | ( | ) | [pure virtual] |
Called when a buffer allocator encounters lock contention during allocation.
Implemented in CNullBufferAllocationMonitor.
virtual void OnBufferReleaseContention | ( | ) | [pure virtual] |
Called when a buffer allocator encounters lock contention during release.
Implemented in CNullBufferAllocationMonitor.
virtual void OnBufferReleased | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [pure virtual] |
Called when a buffer is released, that is when a user no longer requires it and it returns to the allocator. A buffer should be released as many times as it is allocated.
Implemented in CNullBufferAllocationMonitor.
virtual void OnBufferReleasedToPool | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [inline, virtual] |
Reimplemented in CNullBufferAllocationMonitor.
virtual void OnCustomSizedBufferReleased | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [inline, virtual] |
Reimplemented in CNullBufferAllocationMonitor.
virtual void OnBufferDestroyed | ( | ) | [pure virtual] |
Called when a buffer is destroyed; a buffer can be destroyed only once.
Implemented in CNullBufferAllocationMonitor.
virtual void OnCustomSizedBufferDestroyed | ( | ) | [inline, virtual] |
Reimplemented in CNullBufferAllocationMonitor.