开发者

Does Poco C++ library have a cross platform WaitForMultipleObjects() analog?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜