I am thinking of making a worker thread for the [hid] stuff which would monitor the queue, then call a callback for each instance of [hid] that wants data from that queue. This would allow [hid] to easily and properly support multiple instances that access the same device.
Also, I am thinking of a similar setup for multicast-DNS (aka Zeroconf aka Bonjour aka Rendezvous) objects that I am working on.
Are there any objects that currently work like this that I can use as examples? Any pitfalls to this approach?
.hc
________________________________________________________________________ ____
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore