[fpc-pascal] Best way to check SimpleIPC for messages
noreply at z505.com
noreply at z505.com
Mon May 22 04:23:56 CEST 2017
On 2017-05-16 04:55, Michael Schnell wrote:
> On 16.05.2017 07:30, Michael Van Canneyt wrote:
>>
>> select is basically what peekmessage does.
>>
> AFAIK "select()" (and - more versatile - "<e>poll()" ) in Linux uses
> an appropriate system call to wait on one of multiple events (i.e.
> devices, including e.g. pipes, which might be used by IPC). (Despite
> the name) it does not do any "busy wait" ("polling"). So it's can be
> used (instead of waiting in a blocking read) in a worker-thread of an
> "application". It's perfectly useful in an program without a message
> queue provided by LCL or the mse-library.
>
But can it be used without threads at all without locking the app up
More information about the fpc-pascal
mailing list