~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to rtl/go32v2/thread.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: thread.inc,v 1.3 2002/09/07 16:01:19 peter Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 1999-2000 by the Free Pascal development team.
5
 
 
6
 
    Dummy multithreading support for DOS
7
 
 
8
 
    See the file COPYING.FPC, included in this distribution,
9
 
    for details about the copyright.
10
 
 
11
 
    This program is distributed in the hope that it will be useful,
12
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
 
15
 
 **********************************************************************}
16
 
const
17
 
   threadvarblocksize : dword = 0;
18
 
 
19
 
type
20
 
   pd = ^dword;
21
 
 
22
 
var
23
 
   mainprogramthreadblock : pointer;
24
 
 
25
 
procedure init_threadvar(offset : pdword;size : dword);[public,alias: 'FPC_INIT_THREADVAR'];
26
 
 
27
 
  begin
28
 
     offset^:=threadvarblocksize;
29
 
     inc(threadblocksize,size);
30
 
  end;
31
 
 
32
 
 
33
 
function relocate_threadvar(offset : dword) : pointer;[public,alias: 'FPC_RELOCATE_THREADVAR'];
34
 
 
35
 
  asm
36
 
     movl mainprogramthreadblock,%eax
37
 
     addl offset,%eax
38
 
  end;
39
 
 
40
 
{
41
 
  $Log: thread.inc,v $
42
 
  Revision 1.3  2002/09/07 16:01:19  peter
43
 
    * old logs removed and tabs fixed
44
 
 
45
 
}