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:
Károly Balogh 2015-05-31 17:25:31 +00:00
parent 337716d413
commit 6e6b00377f

View File

@ -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.']);