Tim
Tim

Reputation: 20360

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)

Upvotes: 1

Views: 1671

Answers (2)

Warren  P
Warren P

Reputation: 68902

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.

Upvotes: 0

Duck
Duck

Reputation: 27552

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.

Upvotes: 1

Related Questions