summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/uw6767.pp
blob: 6b8133759cf04a9810b5aba7601b95250138f819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Unit uw6767;

{$mode objfpc}{$H+}

Interface

Uses 
Classes,Sysutils;


Type 
  TCheckConnThread = Class(TThread)
    Private 
    Protected
    Procedure Execute;override;
    Public 
    Constructor Create(CreateSuspended : boolean);
  End;



  Implementation


constructor TCheckConnThread.Create(CreateSuspended : boolean);
Begin
  FreeOnTerminate := True;
  inherited Create(CreateSuspended);
End;




Procedure TCheckConnThread.Execute;

Var 
  i : Integer;
Begin
  While (Not Terminated) Do
    Begin
      For i:=1 To 100 Do
        Begin
          If Terminated Then break;
        End;
    End;
End;

End.