Forum > Operating Systems

Wait for multiple events

(1/1)

alpine:
Hi,

Is there a portable way to wait for multiple TEventObject without using an OS-specific call such as e.g. WaitForMultipleObjects?

Thanks in advance!

Wallaby:
Nope. And apparently there is no easy way to do it, I have checked in Delphi, waiting for multiple events is only available for Windows.

Joanna:

--- Quote from: alpine on September 01, 2024, 11:08:58 pm ---Hi,

Is there a portable way to wait for multiple TEventObject without using an OS-specific call such as e.g. WaitForMultipleObjects?

Thanks in advance!

--- End quote ---

I’m curious what controls you are working with ?

Thaddy:
There are several ways to simulate it though, using pthread mutexes, but also through this library:
https://github.com/NeoSmart/PEvents
which looks like being able to be translated/flattened to FreePascal for Posix platforms.

Navigation

[0] Message Index

Go to full version