systhrdh.inc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2001 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$ifdef HASINTF}
  12. type
  13. IReadWriteSync = interface
  14. procedure BeginRead;
  15. procedure EndRead;
  16. procedure BeginWrite;
  17. procedure EndWrite;
  18. end;
  19. {$endif HASINTF}
  20. function InterLockedIncrement (var Target: integer) : Integer;
  21. function InterLockedDecrement (var Target: integer) : Integer;
  22. function InterLockedExchange (var Target: integer;Source : integer) : Integer;
  23. function InterLockedExchangeAdd (var Target: integer;Source : integer) : Integer;
  24. {
  25. $Log$
  26. Revision 1.2 2001-10-22 21:40:55 peter
  27. * InterLocked routines added
  28. Revision 1.1 2001/08/22 21:19:16 florian
  29. + some new stuff of D6/Kylix added
  30. }