sysosh.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2013 by Free Pascal development team
  4. This file implements all the base types and limits required
  5. for a minimal POSIX compliant subset required to port the compiler
  6. to a new OS.
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. {Platform specific information}
  14. type
  15. THandle = LongInt;
  16. TThreadID = Pointer;
  17. TOSTimestamp = LongInt;
  18. PRTLCriticalSection = ^TRTLCriticalSection;
  19. TRTLCriticalSection = record
  20. Locked: LongInt; // integer so we can use wait32.
  21. Count: LongInt; // Number of times locked.
  22. Waiters : LongInt; // Number of waiters
  23. Kind : LongInt; // Kind of mutex, Equals Ord(TMutexKind)
  24. Owner : TThreadID; // Owner thread (who holds the lock)
  25. Creator : TThreadID; // Creator thread
  26. Destroying : Boolean; // Set when notifying that we're destroying the mutex.
  27. end;