Documentation Project 1
|
struct LinkQueue { _32 Top; _32 Bottom; _32 Cnt; _32 Lock; POINTER pNode[2]; };
Members |
Description |
_32 Top; | |
_32 Bottom; |
This is the index of the next element to leave the queue. |
_32 Cnt; |
This is the current count of pointers that can be stored in the queue. |
_32 Lock; |
thread interlock using InterlockedExchange semaphore. For thread safety. |
POINTER pNode[2]; |
need two to have distinct empty/full conditions |
Copyright (c) 2010. All rights reserved.
|
What do you think about this topic? Send feedback!
|