Sack Library Documentation
|
Members |
Description |
INDEX Top; |
This is the next index to be added to. If Top==Bottom, the queue is empty, until an entry is added at Top, and Top increments. |
INDEX Bottom; |
The current bottom index. This is the next one to be returned. |
INDEX Cnt; | |
_32 Lock; |
thread interlock using InterlockedExchange semaphore |
INDEX Size; |
How big each element in the queue is. |
INDEX ExpandBy; |
How many elements to expand the queue by, when its capacity is reached. |
_8 data[1]; |
The data area of the queue. |
A queue of structure elements.
The size of each element must be known at stack creation time. Structures are literally copied to and from this stack. This is a stack 'by value'. When extended, the stack will occupy different memory, care must be taken to not duplicate pointers to this stack.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|