mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 11:29:16 +02:00
* define MT for multithreading introduced
This commit is contained in:
parent
d34997f7a5
commit
0e450cfb2c
@ -1191,6 +1191,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$endif RTLLITE}
|
{$endif RTLLITE}
|
||||||
|
|
||||||
|
{$ifdef MT}
|
||||||
|
{$I thread.inc}
|
||||||
|
{$endif MT}
|
||||||
|
|
||||||
var
|
var
|
||||||
temp_int : tseginfo;
|
temp_int : tseginfo;
|
||||||
@ -1207,6 +1210,14 @@ Begin
|
|||||||
loweststack:=maxlongint;
|
loweststack:=maxlongint;
|
||||||
{ Setup heap }
|
{ Setup heap }
|
||||||
InitHeap;
|
InitHeap;
|
||||||
|
|
||||||
|
{$ifdef MT}
|
||||||
|
{ before this, you can't use thread vars !!!! }
|
||||||
|
{ threadvarblocksize is calculate before the initialization }
|
||||||
|
{ of the system unit }
|
||||||
|
getmem(mainprogramthreadblock,threadvarblocksize);
|
||||||
|
{$endif MT}
|
||||||
|
|
||||||
{ Setup stdin, stdout and stderr }
|
{ Setup stdin, stdout and stderr }
|
||||||
OpenStdIO(Input,fmInput,StdInputHandle);
|
OpenStdIO(Input,fmInput,StdInputHandle);
|
||||||
OpenStdIO(Output,fmOutput,StdOutputHandle);
|
OpenStdIO(Output,fmOutput,StdOutputHandle);
|
||||||
@ -1222,7 +1233,10 @@ Begin
|
|||||||
End.
|
End.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.8 1999-04-08 12:23:02 peter
|
Revision 1.9 1999-04-28 06:01:25 florian
|
||||||
|
* define MT for multithreading introduced
|
||||||
|
|
||||||
|
Revision 1.8 1999/04/08 12:23:02 peter
|
||||||
* removed os.inc
|
* removed os.inc
|
||||||
|
|
||||||
Revision 1.7 1999/03/10 22:15:28 florian
|
Revision 1.7 1999/03/10 22:15:28 florian
|
||||||
|
@ -36,9 +36,12 @@ function relocate_threadvar(offset : dword) : pointer;[public,alias: 'FPC_RELOCA
|
|||||||
movl mainprogramthreadblock,%eax
|
movl mainprogramthreadblock,%eax
|
||||||
addl offset,%eax
|
addl offset,%eax
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 1999-04-27 19:41:06 florian
|
Revision 1.2 1999-04-28 06:01:26 florian
|
||||||
+ first implementation for DOS, only a dummy
|
* define MT for multithreading introduced
|
||||||
|
|
||||||
|
Revision 1.1 1999/04/27 19:41:06 florian
|
||||||
|
+ first implementation for DOS, only a dummy
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user