Delphi Haven – In my previous post, I introduced TMonitor. In this post, I’ll actually put it work by writing a simple threaded queue class with it. ‘Simple’ could mean many things of course, but in this context it will denote two things in particular: firstly, my class will simply wrap the standard generic TQueue; and secondly, there won’t be any maximum item count implemented. The latter means only the the dequeuers’ (i.e., the item takers) may become waiters, i.e., be involved in a Wait loop. For sure, entry into the monitor on the enqueuing (item adding) side may be blocked, ...
Visits by Source
Users who voted for this posting