It was most enlightening, thank you.
You're most welcome. It was just as enlightening for me as well
Thank you for the trigger.
At least now I can stop expecting a semaphore api any time soon. So perhaps I might enhance the posted class with a couple more methods and repost? I'll have to evaluate the time requirements later tonight.
It seems that way, and yes i think that would be most welcome. I've seen some solutions being posted (too many links so got a bit lost, i probably stumbled on your suggestion/implementation as well).
WHen in dire need (and for windows only) one could perhaps have a look at
this Delphi post as well.