浏览代码

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

git-svn-id: trunk@4925 -

Jonas Maebe 19 年之前
父节点
当前提交
f8b013187c
共有 6 个文件被更改,包括 6 次插入6 次删除
  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;