Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

AtomicCmpExchange 1 year 10 months ago #17452

  • Janusz
  • Janusz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
function LockedCompareExchange(var Target: UInt64; Exch, Comp: UInt64): UInt64; register; overload; inline;
begin
  Result := AtomicCmpExchange(Target, Exch, Comp);
end;  
I can not compile LockedCompareExchange function  because of     AtomicCmpExchange              
Is this function supposed to be added in next version of CT ?                                                                               

Please Log in or Create an account to join the conversation.

AtomicCmpExchange 1 year 10 months ago #17453

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
Current CT version 7.90, support ALL Interlocked*** functions.

You can find ALL Interlocked*** functions to
C:\codetyphon\fpcsrc\packages\winunits-jedi\src\JwaWinBase.pas

Just add JwaWinBase unit to your "Uses" to use 
LockedCompareExchange function or
LockedCompareExchange64 function


AtomicCmpExchange  do NOT exist to our programming world ....
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

AtomicCmpExchange 1 year 10 months ago #17483

  • Janusz
  • Janusz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Thanks you for your answer.

I have added   JwaWinBase.pas
to uses list :
uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
   JwaWinBase.pas;                                          

Compiler "does not see" JwaWinBase.pas.
I am to add full path "\fpcsrc\packages.....\src " somewhere in configuration?

Janusz

Please Log in or Create an account to join the conversation.

AtomicCmpExchange 1 year 10 months ago #17485

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
   JwaWinBase; 
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1