JCL Help:TJclMeteredSection

From Project JEDI Wiki
Jump to navigationJump to search

Class Hierarchy

TJclMeteredSection


Summary

Provides a fast alternative to the semaphore kernel object.


Pascal

 public TJclMeteredSection = class(TObject);


Description

TJclMeteredSection is basically nothing more than a semaphore kernel object except that it is much faster. Its speed comes from the fact that unless the calling thread has to enter a wait state, all code is executed in user mode. This in opposition to a semaphore which always requires a transition to kernel mode. This class is (almost) a straight port from the metered section object as presented in the article "A Quick and Versatile Synchronization Object", Dan Chou which is available from the MSDN Library (Technical ArticlesWindows PlatformMultiThreading).


About

Unit

JclSynch


Navigation

Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page