1
vote
Vote UpVote

TInterlocked.Exchange for interfaces?

The Wiert Corner – Via [WayBack] TInterlocked.Exchange for interfaces? Since there is no System.SyncObjs.TInterlocked.Exchange overload for interfaces (and the Exchange versio… – Stefan Glienke – Google+ It has made it to this piece in [Archive.is] sglienke / Spring4D / source / Source / Reactive / Spring.Reactive.pas — Bitbucket: class function TInterlockedHelper.Exchange<T>(var Target: T; const Value: T): T; begin Result := Default(T); PPointer(@Result)^ := Exchange(PPointer(@Target)^, PPointer(@Value)^); if Assigned(Value) then Value._AddRef; end; It is similar to the ...
Favorite? Off-Topic? jpluimers @ 2019-05-29 07:03

Statistics

Visits: 101
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)