Hi, > - elisa keeps track of how many fd's it has handed off to pigment that > have not been closed yet, and has an upper limit. This is possible; > pigment has a callback for when it closes the fd.
(answering myself :)) Recalling the discussion about the use of singletons in Elisa - this would be a good example of where a singleton does make sense. In this case, the singleton could be keeping track of the number of fd's that are currently in use by pigment. A singleton is a good pattern for mediating access to a scarce resource. Thomas
