sklett wrote:
[...]
And finally to my question: Many of my ITask objects need a reference to a
single instance of TestProcessManager and VideoAcquisition. I can think of
several ways to accomplish this:
1) Make TestProcessManager and VideoAcquisition singletons
Assuming that the instances truly are singletons, or if they are not but
you will only ever have once instance and it's not a problem for the
instance to change after you've queued an ITask, it seems to me that
using the singleton pattern is fine. Appropriate, even.
If there is something more complicated about the scenario than above,
you should probably clarify that. I didn't see anything in your
question that would suggest any of the other solutions you posted would
be somehow better than just using a singleton.
Pete