#include <buffers.h>
Definition at line 36 of file buffers.h.
|
Tries to allocate `sz' bytes on the heap. A pointer to the allocation is returned if new() succeeds. If the allocation fails, cache buffers (if any) are freed one by one and the allocation attempt is retried. If this fails and the safety pool is "exhausted", new() calls abort(). Otherwise, allocation in the safety pool is attempted. This attempt, whether successful or not, sets the private TVMemMgr::safetyPool pointer to 0 (indicating that the safety pool is "exhausted"). If new() does allocate successfully from the safety pool, a pointer to the allocation is returned; otherwise, abort() is called. Operator new() is a friend function of TBufListEntry. |