<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 16, 2016 at 6:22 AM, Bo Berglund <span dir="ltr"><<a href="mailto:bo.berglund@gmail.com" target="_blank">bo.berglund@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When porting a Delphi console program on Windows to FreePascal on<br>
Linux, what can one do with API calls like WaitForMultipleObjects,<br>
which is used to synchronize processing between threads?<br></blockquote></div><br></div><div class="gmail_extra">It depends if you're actually using WaitForMultipleObjects to sync with *multiple* objects.<br></div><div class="gmail_extra">AFAIK, Posix API (implemented by Linux) do not have any routine to handle/sync multiple objects at the same.<br></div><div class="gmail_extra">Thus you might need to build something similar yourself.<br><br></div><div class="gmail_extra">The closest API in linux system is select() function, that can check the status of multiple file-descriptors in one call. Some of file-descriptor objects could be used for synchronization purposes.<br><br></div><div class="gmail_extra">thanks,<br></div><div class="gmail_extra">Dmitry<br></div></div>