A gift to all multithreaded Delphi programmers
A (very) prerelease version 1.05, available via SVN or as a ZIP archive. I’ve managed to produce two interesting data structures:
Have fun and happy new year to all Delphi programmers! Labels: Delphi, multithreading, OmniThreadLibrary, open source, programming |
4 Comments:
Interesting.
I have read your article about Threads in Blaizepascal.
Interesting and looking forward to read the next installment.
Chris
The blocking collection looks incredibly useful, but how can I use it in the context of thread shutdown? Imagine a few consumers blocking on the collection inside Take(), and then the consumer threads are to be shut down. How could this be achieved?
OK, after reading the source code I think CompleteAdding() is doing the trick. Neat. Thanks for that present.
Yes, CompleteAdding and wait for consumers to shut down.
Post a Comment
Links to this post:
Create a Link
<< Home