Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::DATASTACK Structure
C++
typedef struct DataListStack {
  _32 Top;
  _32 Cnt;
  _32 Lock;
  _32 Size;
  _8 data[1];
} DATASTACK, * PDATASTACK;
Members 
Description 
_32 Top; 
enable logging the program executable (probably the same for all messages, unless they are network) 
_32 Cnt; 
How many elements are on the stack. 
_32 Lock; 
thread interlock using InterlockedExchange semaphore. For thread safety. 
_32 Size; 
Size of each element in the stack. 
_8 data[1]; 
The actual data area of the stack. 

A Stack that stores information in an array of structures of known size.

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) 2010. All rights reserved.
What do you think about this topic? Send feedback!