Преглед на файлове

AROS: Semaphores are much bigger on 64bit, fixes crashes and freezes on AROS64 with Threading enabled

git-svn-id: trunk@36206 -
marcus преди 8 години
родител
ревизия
67c3fd2276
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      rtl/amicommon/sysosh.inc

+ 6 - 2
rtl/amicommon/sysosh.inc

@@ -23,9 +23,13 @@ type
   PRTLCriticalSection = ^TRTLCriticalSection;
   TRTLCriticalSection = record
     { This must actually be bigger or equal to sizeof(TSignalSemaphore)
-      which seems to be 46 bytes on MorphOS and Amiga/m68k and
-      56 bytes on AROS/x86 ABIv0. }
+      which seems to be 46 bytes on MorphOS and Amiga/m68k,
+      56 bytes on AROS/x86 ABIv0 and 104 bytes on AROS x64}
+    {$ifdef CPU64}
+    semaphore: array[0..128] of byte;
+    {$else}
     semaphore: array[0..63] of byte;
+    {$endif}
   end;
 
 { BeginThread flags we support in AThreads }