mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:39:36 +02:00
* stacksize fixes for freebsd
git-svn-id: trunk@1630 -
This commit is contained in:
parent
380d3be22c
commit
6279c187f9
@ -185,7 +185,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ TThread }
|
{ TThread }
|
||||||
constructor TThread.Create(CreateSuspended: Boolean);
|
constructor TThread.Create(CreateSuspended: Boolean;
|
||||||
|
const StackSize: DWord = DefaultStackSize);
|
||||||
begin
|
begin
|
||||||
// lets just hope that the user doesn't create a thread
|
// lets just hope that the user doesn't create a thread
|
||||||
// via BeginThread and creates the first TThread Object in there!
|
// via BeginThread and creates the first TThread Object in there!
|
||||||
@ -196,8 +197,8 @@ begin
|
|||||||
FSuspendedExternal := false;
|
FSuspendedExternal := false;
|
||||||
FInitialSuspended := CreateSuspended;
|
FInitialSuspended := CreateSuspended;
|
||||||
FFatalException := nil;
|
FFatalException := nil;
|
||||||
WRITE_DEBUG('creating thread, self = ',longint(self));
|
WRITE_DEBUG('creating thread, self = ',PtrInt(self));
|
||||||
FHandle:= BeginThread(@ThreadFunc, Pointer(Self), FThreadID);
|
FHandle:= BeginThread(@ThreadFunc, Pointer(Self), FThreadID,StackSize);
|
||||||
WRITE_DEBUG('TThread.Create done');
|
WRITE_DEBUG('TThread.Create done');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user