Bladeren bron

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

git-svn-id: trunk@4925 -

Jonas Maebe 19 jaren geleden
bovenliggende
commit
f8b013187c
6 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 1 1
      rtl/darwin/tthread.inc
  2. 1 1
      rtl/freebsd/tthread.inc
  3. 1 1
      rtl/linux/tthread.inc
  4. 1 1
      rtl/netbsd/tthread.inc
  5. 1 1
      rtl/openbsd/tthread.inc
  6. 1 1
      rtl/solaris/tthread.inc

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