Browse Source

* Implemented inclocked and declocked for arm.

git-svn-id: trunk@4534 -
yury 19 years ago
parent
commit
ba21edb0fd
1 changed files with 12 additions and 0 deletions
  1. 12 0
      rtl/arm/arm.inc

+ 12 - 0
rtl/arm/arm.inc

@@ -282,3 +282,15 @@ asm
 .Lfpc_system_lock:
   .long fpc_system_lock
 end;
+
+{$define FPC_SYSTEM_HAS_DECLOCKED_LONGINT}
+function declocked(var l: longint) : boolean; inline;
+begin
+  Result:=InterLockedDecrement(l) = 0;
+end;
+
+{$define FPC_SYSTEM_HAS_INCLOCKED_LONGINT}
+procedure inclocked(var l: longint); inline;
+begin
+  InterLockedIncrement(l);
+end;