Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-10

RTL events

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi!

I'm studing RTL Events and TEvent class under Unix. RTL Event don't keep the state of event after an RTLEventWaitFor or RTLEventWaitForTimeout (after this the event is reseted).

This reset after an RTLWaitFor is a rule for RTL Events? Or it will keep the state of event in future?

Fabio Luis Girardi

Vinzent Hoefler
to Unknown author
Show quoted text 5 lines
I'm studing RTL Events and TEvent class under Unix. RTL Event don't keep the state of event after an RTLEventWaitFor or RTLEventWaitForTimeout (after this the event is reseted). This reset after an RTLWaitFor is a rule for RTL Events?

Yes. You've first waited for the event to happen, then it happened, so now you should wait for the next event.

Basically,

RTLEventWaitFor;
RTLEventWaitFor;

should require two distinct events to get through.

Vinzent.