Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基于这个问题,我将使用 Poco::NamedEvent,但我需要等待多个事件(如 win32 WaitForMultipleObjects()
poco有这样的东西吗?(搜索文档并没有产生多少,但也许我没有使用正确的搜索)
我认为您不会在任何跨平台包中找到 WaitForMultipleObjects(),包括 Poco。我知道没有哪个 Unix 变体在单个 API 调用中封装了这种功能,而是根据您正在等待的对象类型将其展开。
类 NotificationQueue 可以让您将对象排队并处理它们。无论如何,使用 IOC 和委托比使用大的 WaitForMultipleObjects 后跟 switch 语句更好的 OOP。
I have a List of objects and each object is a another List of objects, so for example, I am passing List<object> cars to one method and I want to get all the properties of on
List<object> cars