It would be nice to have the ThreadQueue
implementation improved by adding a timeout,
for instance a timed wait on a semaphore,
so that users can have an onTimer() call back
in case of timeout.
I've submitted a feature request for that with patches on
(old?) Commonc++ site, please follow bug #1531614.