[Lazarus] Signal handling

Anton Kavalenka anton.k at tut.by
Wed Feb 20 10:02:00 CET 2013


On 20.02.2013 11:36, Mark Morgan Lloyd wrote:
> If I want to poll a variable set by an asynchronous unix-style signal, 
> i.e. that doesn't have an OS-level handle and where the latency should 
> probably be of the order of 100mSec, what's the most effective technique?
>
Thread1

fEvent.WaitFor(INFINITE); // hang on signal handle

Thread2

fEvent.SetEvent; // this releases thread1 form waiting


regards
Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130220/efd01117/attachment-0003.html>


More information about the Lazarus mailing list