mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 08:28:09 +02:00
amicommon: since system units now contain CREATE_SUSPENDED const, use that instead of a hardwired value
git-svn-id: trunk@30958 -
This commit is contained in:
parent
337716d413
commit
6e6b00377f
@ -27,7 +27,7 @@ begin
|
||||
FInitialSuspended := CreateSuspended;
|
||||
{ Always start in suspended state, will be resumed in AfterConstruction if necessary
|
||||
See Mantis #16884 }
|
||||
FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), 1{CREATE_SUSPENDED},
|
||||
FHandle := BeginThread(nil, StackSize, @ThreadProc, pointer(self), CREATE_SUSPENDED,
|
||||
FThreadID);
|
||||
if FHandle = TThreadID(0) then
|
||||
raise EThread.CreateFmt(SThreadCreateError, ['Cannot create thread.']);
|
||||
|
Loading…
Reference in New Issue
Block a user