mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-30 19:34:46 +02:00

- now supports creation of suspended threads - reworked CriticalSections handling to avoid outside-heap dynamic allocations of mutex space - allocate threadvars area into the heapPool, this avoids leaking the mainthread threadvar area on exit - now supports setting thread stacksize in a Delphi-compatible way (by default inherits the stacksize of its parent) - better subthread naming git-svn-id: trunk@30912 -
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2001 by Free Pascal development team
|
|
|
|
This file implements all the base types and limits required
|
|
for a minimal POSIX compliant subset required to port the compiler
|
|
to a new OS.
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
|
|
{Platform specific information}
|
|
type
|
|
{$ifdef CPU64}
|
|
THandle = Int64;
|
|
{$else CPU64}
|
|
THandle = LongInt;
|
|
{$endif CPU64}
|
|
TThreadID = THandle;
|
|
|
|
PRTLCriticalSection = ^TRTLCriticalSection;
|
|
{$IFDEF AROS}
|
|
TRTLCriticalSection = Pointer;
|
|
{$ELSE}
|
|
TRTLCriticalSection = record
|
|
{ This must actually be bigger or equal to sizeof(TSignalSemaphore)
|
|
which seems to be 46 bytes on MorphOS and Amiga/m68k. }
|
|
semaphore: array[0..63] of byte;
|
|
end;
|
|
{$ENDIF}
|