mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
* fixed semaphore init, caused endless loop when terminating any
thread git-svn-id: trunk@4925 -
This commit is contained in:
parent
b6309075a4
commit
f8b013187c
@ -142,7 +142,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
@ -136,7 +136,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
@ -142,7 +142,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
@ -136,7 +136,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
@ -136,7 +136,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
@ -136,7 +136,7 @@ begin
|
||||
// via BeginThread and creates the first TThread Object in there!
|
||||
InitThreads;
|
||||
inherited Create;
|
||||
FSem := CurrentTM.SemaphoreInit;
|
||||
FSem := CurrentTM.SemaphoreInit();
|
||||
FSuspended := CreateSuspended;
|
||||
FSuspendedExternal := false;
|
||||
FInitialSuspended := CreateSuspended;
|
||||
|
Loading…
Reference in New Issue
Block a user