Browse Source

* fixed semaphore init, caused endless loop when terminating any
thread

git-svn-id: trunk@4925 -

Jonas Maebe 19 năm trước cách đây
mục cha
commit
f8b013187c

+ 1 - 1
rtl/darwin/tthread.inc

@@ -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;

+ 1 - 1
rtl/freebsd/tthread.inc

@@ -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;

+ 1 - 1
rtl/linux/tthread.inc

@@ -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;

+ 1 - 1
rtl/netbsd/tthread.inc

@@ -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;

+ 1 - 1
rtl/openbsd/tthread.inc

@@ -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;

+ 1 - 1
rtl/solaris/tthread.inc

@@ -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;