mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 13:49:32 +02:00
+ first implementation for DOS, only a dummy
This commit is contained in:
parent
cbce2c59c9
commit
36a954b6e4
44
rtl/go32v2/thread.inc
Normal file
44
rtl/go32v2/thread.inc
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
$Id$
|
||||
This file is part of the Free Pascal run time library.
|
||||
Copyright (c) 1999 by the Free Pascal development team.
|
||||
|
||||
Dummy multithreading support for DOS
|
||||
|
||||
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.
|
||||
|
||||
**********************************************************************}
|
||||
const
|
||||
threadvarblocksize : dword = 0;
|
||||
|
||||
type
|
||||
pd = ^dword;
|
||||
|
||||
var
|
||||
mainprogramthreadblock : pointer;
|
||||
|
||||
procedure init_threadvar(offset : pdword;size : dword);[public,alias: 'FPC_INIT_THREADVAR'];
|
||||
|
||||
begin
|
||||
offset^:=threadvarblocksize;
|
||||
inc(threadblocksize,size);
|
||||
end;
|
||||
|
||||
|
||||
function relocate_threadvar(offset : dword) : pointer;[public,alias: 'FPC_RELOCATE_THREADVAR'];
|
||||
|
||||
asm
|
||||
movl mainprogramthreadblock,%eax
|
||||
addl offset,%eax
|
||||
end;
|
||||
{
|
||||
$Log$
|
||||
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