Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TBufListEntry Class Reference

Part of the memory manager. More...

#include <buffers.h>

List of all members.


Detailed Description

TBufListEntry, in conjunction with TVMemMgr, is used internally by TVision to create and manage the video cache buffers for group drawing operations. All its members are private and will seldom if ever be referenced explicitly in normal applications. TVMemMgr is a friend class and the global operator new is a friend function.

Definition at line 36 of file buffers.h.


Friends And Related Function Documentation

void * operator new ( size_t sz ) [friend]
 

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.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:20 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001