My goal is to create a simple Ethereum smart contract that allows for an atomic swap between tokens. Initially it should've been a cross-chain swap bu ...
My goal is to create a simple Ethereum smart contract that allows for an atomic swap between tokens. Initially it should've been a cross-chain swap bu ...
I'm looking into chain interoperability on network level (ex Fabric - Corda, Sawtooth - Ethereum, Corda entr - Corda os) and was wondering if there is ...
I have two pointers in memory and I want to swap it atomically but atomic operation in CUDA support only int types. There is a way to do the following ...
I am investigating java.util.concurrent.locks.AbstractQueuedSynchronizersource code. From severals place invokes compareAndSetState method. Parame ...
As per my understanding, any atomic instructions(compare_and_swap, test_and_test, fetch_and_add) are executed as a single instruction. Though they inv ...
MSDN says that the interlocked functions provide a simple mechanism for synchronizing access to a variable that is shared by multiple threads. I am n ...
I found the InterlockedExchange function which allows me to exchange two signed 32-bit variables (LONG). But, what is the correct way to atomically e ...
Consider this code under GCC 4.8.0: How can I make the line above to be atomic as whole? In other words, how to obtain atomic assignment of atomic ...
Swapping two unique_ptrs is not guaranteed to be threadsafe. Since I need atomic pointer swaps and since I like the ownership handling of unique_pt ...
Does the Oracle (Sun) Studio 12.2 C/C++/Fortran compiler for Linux 64-bit have an equivalent to the __sync_fetch_and_add function that is provided in ...
In a larger piece of code, I noticed that the g_atomic_* functions in glib were not doing what I expected, so I wrote this simple example: When I c ...
I have a struct called Ambigous, and inside the struct I have an array of pointers to other Ambigous. I want to use OSAtomic.h library, to do Compare ...
Is there any way to implement a type of reference whose value can be exchanged with another atomically? In Java we have AtomicReference which can b ...
I have a large data structure that is using striping to reduce lock contention. Right now I am using system locks but 99.99% of the time, the lock is ...
I want to verify that my understanding is correct. This kind of thing is tricky so I'm almost sure I am missing something. I have a program consisting ...
Is OSCompareAndSwap (Mac OS X) equivalent to CMPXCHG8B? ...
I know that on MacOSX / PosiX systems, there is atomic-compare-and-swap for C/C++ code via g++. However, I don't need the compare -- I just want to a ...