Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::containers::PLINKSTACK Structure
C++
typedef struct LinkStack {
  _32 Top;
  _32 Cnt;
  _32 Lock;
  _32 Max;
  POINTER pNode[1];
} LINKSTACK, * PLINKSTACK;
Members 
Description 
_32 Top; 
This is the index of the next pointer to be pushed or popped. If top == 0, the stack is empty, until a pointer is added and top is incremented. 
_32 Cnt; 
How many pointers the stack can contain. 
_32 Lock; 
thread interlock using InterlockedExchange semaphore. For thread safety. 
_32 Max; 
a defined maximum capacity of stacked values... values beyond this are lost from the bottom 
POINTER pNode[1]; 
Reserved data portion that stores the pointers. 

This is a stack that contains pointers to user objects.

This is a stack 'by reference'. 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!