Quantitative Analysis.
Trading Platform.
Python for Excel.
Author.
I.Installation.
II.OTS Scheduler.
1.Threading primitives.
2.NonBlockingQueue.
A.NonBlockingQueue design.
B.Simplest example with NonBlockingQueue.
C.NonBlockingQueue prototypes.
D.NonBlockingQueue data fields.
E.NonBlockingQueue::push member function.
F.NonBlockingQueue::pop member function.
G.NonBlockingQueue::Element.
H.NonBlockingQueue::Node.
I.Python-based acceptance test of NonBlockingQueue.
3.ThreadPool.
4.ThreadMaster.
5.Scheduler implementation.
III.OTS Python Object Browser.
Bibliography.
Forum Index Contents Downloads

NonBlockingQueue data fields.


e represent the structure of the figure ( NonBlockingQueue Design) with the following data fields

private:

volatile unsigned char theSwitch;

Element* theArray[UCHAR_MAX+1];

const int theCircleLength;

The theSwitch is the data field "Switch" on the figure. theArray is the array of Element pointers that are directly referenced by the "Switch". theCircleLength is the number of Elements in the circular structure on the Figure ( NonBlockingQueue Design).





Forum Index Contents Download


















Copyright 2009.