atomic
NimbusDB - distributed, non-blocking, atomic commit protocol?
From the NimbusDB website: Our distributed non-blocking atomic commit protocol allows database transaction processing at any available node.[详细]
2023-03-07 11:43 分类:问答Double-Checked Lock Singleton in C++11
Is the following singleton implementation data-race free? static std::atomic<Tp *> m_instance; ...[详细]
2023-03-07 08:20 分类:问答lock free queue enqueue if not empty
I have implemented a lock free queue in C using compare and swap based on http://www.boyet.com/articles/LockfreeQueue.html.[详细]
2023-03-02 15:47 分类:问答Is a comparison an atomic operation?
Is the following comparison an atomic action?开发者_StackOverflow社区 I.e., can it be reduced to a single CPU instruction?[详细]
2023-02-28 16:28 分类:问答Simulating LDREX/STREX (load/store exclusive) in Cortex-M0
In the Cortex-M3 instruction set, there exist a family of LDREX/STREX instructions such that if a location is read with an LDREX instruction, a following STREX instruction can write开发者_运维技巧 to[详细]
2023-02-27 09:50 分类:问答How to Select a record from the database and update it in an atomic query
I have a number of records in a table with a Status column and I want to select a single record where Status = Pending and in the same atomic query mark it as Status = InProcess.What\'s the best way t[详细]
2023-02-27 00:12 分类:问答equality test for atomic variables in C and gcc
I have a dummy question about atomic variables using gcc. My machine supports __sync_add_and_fetch functio开发者_StackOverflown; I use this call in thread A to set my_variable (int) .[详细]
2023-02-24 08:20 分类:问答GLIB: g_atomic_int_get becomes NO-OP?
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:[详细]
2023-02-22 20:34 分类:问答Appropriate cast for OSAtomicCompareAndSwapPtrBarrier
In this program: int x, y; int *old = &x; int *new = &y; int * volatile cur = &x; OSAtomicCompareAndSwapPtrBarrier(old, new, &cur);[详细]
2023-02-22 14:24 分类:问答Is struct assignment atomic in C/C++?
I am writing a program which has one process reading and writing to a shared memory and another process only reading it. In the shared memory there is a struct like this:[详细]
2023-02-21 17:26 分类:问答