Based on this question I am going to use Poco::NamedEvent, but I need to wait for multiple events (like win32 WaitForMultipleObjects()
Is there such a thing in poco? (searching the docs doesn't yield much but perhaps I am not using the right searches开发者_开发百科)
I don't think you'll find WaitForMultipleObjects() in any cross-platform package, including Poco. No Unix variant of which I am aware packages that kind of functionality in single API call but rather spreads it out depending on the kind of object you are waiting on.
class NotificationQueue would let you queue up objects, and process them. It is better OOP to use IOC and delegates than to have a big WaitForMultipleObjects followed by a switch statement, anyways.
精彩评论