On Mon, May 16, 2016 at 6:22 AM, Bo Berglund <bo.bergl...@gmail.com> wrote:
> When porting a Delphi console program on Windows to FreePascal on > Linux, what can one do with API calls like WaitForMultipleObjects, > which is used to synchronize processing between threads? > It depends if you're actually using WaitForMultipleObjects to sync with *multiple* objects. AFAIK, Posix API (implemented by Linux) do not have any routine to handle/sync multiple objects at the same. Thus you might need to build something similar yourself. 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. thanks, Dmitry
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal