Quantitative Analysis
Parallel Processing
Numerical Analysis
C++ Multithreading
Python for Excel
Python Utilities
Services
Author

I. Installation.
II. Threading primitives.
1. Encapsulation of primitives.
2. Preventing starvation.
3. Preventing race condition.
A. Guard primitives.
a. ReaderGuard.
b. WriterGuard.
c. UpgradeGuard.
d. TryGuard.
4. Barriers.
III. NonBlockingQueue.
IV. ThreadPool.
V. ThreadMaster.
VI. OTS Scheduler.
VII. Bibliography
Downloads. Index. Contents.

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.





Downloads. Index. Contents.


















Copyright 2007