systhrdh.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ['{7B108C52-1D8F-4CDB-9CDF-57E071193D3F}']
  15. procedure BeginRead;
  16. procedure EndRead;
  17. function BeginWrite : boolean;
  18. procedure EndWrite;
  19. end;
  20. {$endif HASINTF}
  21. function InterLockedIncrement (var Target: longint) : longint;
  22. function InterLockedDecrement (var Target: longint) : longint;
  23. function InterLockedExchange (var Target: longint;Source : longint) : longint;
  24. function InterLockedExchangeAdd (var Target: longint;Source : longint) : longint;
  25. {
  26. $Log$
  27. Revision 1.3 2005-02-06 20:31:35 florian
  28. + GlobalNameSpace
  29. Revision 1.2 2004/03/05 12:17:50 marco
  30. * interlocked* changed to longints, including winapi. (which was a bug)
  31. Revision 1.1 2003/10/06 21:01:06 peter
  32. * moved classes unit to rtl
  33. Revision 1.3 2002/09/07 16:01:22 peter
  34. * old logs removed and tabs fixed
  35. }