The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CNullBufferAllocationMonitor Class Reference
[Null ObjectsMonitoringI/O Buffers]

Inheritance diagram for CNullBufferAllocationMonitor:
Collaboration diagram for CNullBufferAllocationMonitor:

List of all members.


Detailed Description

An object that implements IMonitorBufferAllocation and does nothing.

Public Member Functions

void OnBufferCreated () override
 Called when a buffer is created; a buffer can be created only once.
void OnCustomSizedBufferCreated () override
 Called when a buffer larger than poolable size is created; a buffer can be created only once.
void OnBufferAllocated (JetByteTools::Core::IIndexedOpaqueUserData &) override
 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.
void OnBufferAllocatedFromPool (JetByteTools::Core::IIndexedOpaqueUserData &) override
void OnCustomSizedBufferAllocated (JetByteTools::Core::IIndexedOpaqueUserData &) override
void OnBufferAllocationContention () override
 Called when a buffer allocator encounters lock contention during allocation.
void OnBufferReleaseContention () override
 Called when a buffer allocator encounters lock contention during release.
void OnBufferReleased (JetByteTools::Core::IIndexedOpaqueUserData &) override
 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.
void OnBufferReleasedToPool (JetByteTools::Core::IIndexedOpaqueUserData &) override
void OnCustomSizedBufferReleased (JetByteTools::Core::IIndexedOpaqueUserData &) override
void OnBufferDestroyed () override
 Called when a buffer is destroyed; a buffer can be destroyed only once.
void OnCustomSizedBufferDestroyed () override

Member Function Documentation

void OnBufferCreated (  )  [inline, override, virtual]

Called when a buffer is created; a buffer can be created only once.

Implements IMonitorBufferAllocation.

void OnCustomSizedBufferCreated (  )  [inline, override, virtual]

Called when a buffer larger than poolable size is created; a buffer can be created only once.

Reimplemented from IMonitorBufferAllocation.

void OnBufferAllocated ( JetByteTools::Core::IIndexedOpaqueUserData userData  )  [inline, override, 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.

Implements IMonitorBufferAllocation.

void OnBufferAllocatedFromPool ( JetByteTools::Core::IIndexedOpaqueUserData  )  [inline, override, virtual]

Reimplemented from IMonitorBufferAllocation.

void OnCustomSizedBufferAllocated ( JetByteTools::Core::IIndexedOpaqueUserData  )  [inline, override, virtual]

Reimplemented from IMonitorBufferAllocation.

void OnBufferAllocationContention (  )  [inline, override, virtual]

Called when a buffer allocator encounters lock contention during allocation.

Implements IMonitorBufferAllocation.

void OnBufferReleaseContention (  )  [inline, override, virtual]

Called when a buffer allocator encounters lock contention during release.

Implements IMonitorBufferAllocation.

void OnBufferReleased ( JetByteTools::Core::IIndexedOpaqueUserData userData  )  [inline, override, 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.

Implements IMonitorBufferAllocation.

void OnBufferReleasedToPool ( JetByteTools::Core::IIndexedOpaqueUserData  )  [inline, override, virtual]

Reimplemented from IMonitorBufferAllocation.

void OnCustomSizedBufferReleased ( JetByteTools::Core::IIndexedOpaqueUserData  )  [inline, override, virtual]

Reimplemented from IMonitorBufferAllocation.

void OnBufferDestroyed (  )  [inline, override, virtual]

Called when a buffer is destroyed; a buffer can be destroyed only once.

Implements IMonitorBufferAllocation.

void OnCustomSizedBufferDestroyed (  )  [inline, override, virtual]

Reimplemented from IMonitorBufferAllocation.


Generated on Sun Sep 12 19:09:37 2021 for The Server Framework - v7.4 by doxygen 1.5.3