This will do nicely. I have implemented the InterlockedExchangeAdd since y is <> 1.
Many thanks, Ross. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gunnar Blumert Sent: Wednesday, 18 July 2007 3:43 To: Borland's Delphi Discussion List Subject: Re: Threads again Use InterlockedIncrement/InterlockedDecrement or InterlockedExchangeAdd (if your Y-value is <> 1) _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

