TDM Rerun #8: A Synchronisation Toolkit
In October 2002 I presented my GpSync unit, which is still very actively updated and developed. At the time of writing, there were four reusable classes in this unit - a token, a group, a counted group and single-write-multiple-readers reimplementation copied (and translated from C to Delphi) from Advanced Windows by Jeffrey Richter. Since that first public occurrence, GpSync was extended with a flag, a counter, a message queue (shared-memory based, can be used to send messages from an interactive application to a service and back), and a circular buffer. To this day, it represents most common building blocks I'm using in multithreaded applications.
Links: article (PDF, 148 KB), source code (ZIP, 196 KB), current GpSync unit Labels: Delphi, source code, The Delphi Magazine |
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home