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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to