Jump to content
FPiette

Cross platform way of waiting for multiple objects

Recommended Posts

I'm converting some software of mine to cross platform (Mainly Windows and Linux). I have to replace Windows WaitForMultipleObjects where objects to be waited may be any combination of several pipe handles (ready to read), socket handles, mutex and semaphores.

 

I don't see anything obvious in unit System.SyncObjs.

 

Any help appreciated.

Share this post


Link to post

Hello,

I don't think it will be easy ... personally I rewrote such code to use only a single wake-up event.

 

But a Google search for WaitForMultipleObjects linux does have some interesting results, for example:

https://news.ycombinator.com/item?id=20580626

 

There are Stackoverflow results too, but the site is down right now, so I can't check them.

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×