mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 10:59:24 +02:00
+ add cthreads for unix platforms
git-svn-id: trunk@16299 -
This commit is contained in:
parent
c4488f6b3a
commit
ae483061b1
@ -4,7 +4,11 @@
|
|||||||
|
|
||||||
{$ifdef fpc}{$mode objfpc}{$endif}
|
{$ifdef fpc}{$mode objfpc}{$endif}
|
||||||
|
|
||||||
uses SysUtils, Classes;
|
uses
|
||||||
|
{$ifdef unix}
|
||||||
|
cthreads,
|
||||||
|
{$endif}
|
||||||
|
SysUtils, Classes;
|
||||||
|
|
||||||
type
|
type
|
||||||
TMyThread = class(TThread)
|
TMyThread = class(TThread)
|
||||||
@ -25,4 +29,4 @@ begin
|
|||||||
t := TMyThread.Create(True);
|
t := TMyThread.Create(True);
|
||||||
t.Free;
|
t.Free;
|
||||||
Halt(ord(Flag));
|
Halt(ord(Flag));
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user