A flag implies a line of code that says
while flag = false do {nothing};
flag := true;
// do stuff
flag := false;
The concern is as to whether it is possible for two instances to exit
the loop before one of them has set the flag to true?
Steven
> Place a global counter in the onevent handler, inc the event each
> time an instance occurs and dec the event each time a loop is completed
> in a for.. or while.. loop, which keeps running till the loop is zeroed, in the same
>eventhandlerproc.
>
> I have an event that can be triggered many times. Each instance can
> be very close to the previous one.
>
> I want to avoid having two instances of the event method running at
> once or at least be able to cause all instances to delay completing
> while the first/current one finishes.
>
> Effectively I want them to queue.
>
> How do I do it??
>
> Steven
>
>
> Wild Software Ltd
> P O Box 33-216
> Christchurch
> NEW ZEALAND
>
> =========================================================
> I haven't lost my mind; it's backed up on tape somewhere.
> =========================================================
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
>
>
Wild Software Ltd
P O Box 33-216
Christchurch
NEW ZEALAND
=========================================================
I haven't lost my mind; it's backed up on tape somewhere.
=========================================================
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz