Quantitative Analysis.
Trading Platform.
Python for Excel.
Author.
I.Installation.
II.OTS Scheduler.
1.Threading primitives.
A.Encapsulation of primitives.
B.Preventing starvation.
C.Preventing race condition.
a.Guard primitives.
i.ReaderGuard.
ii.WriterGuard.
iii.UpgradeGuard.
iv.TryGuard.
D.Barriers.
2.NonBlockingQueue.
3.ThreadPool.
4.ThreadMaster.
5.Scheduler implementation.
III.OTS Python Object Browser.
Bibliography.
Forum Index Contents Downloads

UpgradeGuard.

he UpgradeGuard is used to gain writer access for the thread that already has a reading access. Hence, the constructor of the UpgradeGuard is

explicit UpgradeGuard( ReaderGuard<X,Mutex>& guard );

The UpgradeGuard is similar to the WriterGuard in other parts of the interface. See the section ( RWMutex_section) for remarks on possibility of a deadlock.





Forum Index Contents Download


















Copyright 2009.