Skip to content

Interlocked.CompareExchange on Nullable<int> #114550

Discussion options

You must be logged in to vote

In which case I definitely can't provide my own implementation because it would it wouldn't work on x64 either. It would run but not actually be atomic because that is the penalty.

I could however use the union trick, which doesn't package up neatly into an API.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@colejohnson66
Comment options

@jhudsoncedaron
Comment options

@Clockwork-Muse
Comment options

@jhudsoncedaron
Comment options

Answer selected by jhudsoncedaron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants