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.1 2003-10-06 21:01:06 peter
  27. * moved classes unit to rtl
  28. Revision 1.3 2002/09/07 16:01:22 peter
  29. * old logs removed and tabs fixed
  30. }