About 7,420,000 results
Open links in new tab
  1. What does "atomic" mean in programming? - Stack Overflow

    May 8, 2015 · In the Effective Java book, it states: The language specification guarantees that reading or writing a variable is atomic unless the variable is of type long or double [JLS, …

  2. c++ - Are +=, |=, &= etc atomic? - Stack Overflow

    2 ++ might be atomic on your compiler/platform, but in the c++ specs it is not defined to be atomic. If you want to make sure to modify a value in an atomic way, you should use the appropiate …

  3. What are atomic operations for newbies? - Stack Overflow

    Sep 6, 2018 · Everything works. Note that "atomic" is contextual: in this case, the upsert operation only needs to be atomic with respect to operations on the answers table in the database; the …

  4. What are atomic types in the C language? - Stack Overflow

    Apr 30, 2016 · I remember I came across certain types in the C language called atomic types, but we have never studied them. So, how do they differ from regular types like int,float,double,long …

  5. In C#, what does "atomic" mean? - Stack Overflow

    Aug 2, 2016 · I read this in the book C# 6.0 and the .NET 4.6 framework: “assignments and simple arithmetic operations are not atomic”. So, what does it exactly mean?

  6. c++ - Atomic operations on `unique_ptr` - Stack Overflow

    Jan 28, 2016 · std::shared_ptr has specializations for atomic operations like atomic_compare_exchange_weak and family, but I cannot find documentation on equivalent …

  7. c++ - How to implement an atomic counter - Stack Overflow

    Sep 18, 2023 · Fortunately, the value initializing constructor of an integral atomic is constexpr, so the above leads to constant initialization. Otherwise you'd want to make it -say- a static …

  8. What's the difference between the atomic and nonatomic attributes?

    Feb 26, 2009 · The last two are identical; "atomic" is the default behavior (note that it is not actually a keyword; it is specified only by the absence of nonatomic -- atomic was added as a …

  9. In C is "i+=1;" atomic? - Stack Overflow

    May 30, 2010 · In C, is i+=1; atomic?That's true. But the answer to the question "is it atomic" is "no", and the answer to the question "is it non-atomic" is also "no". Rather than act like an …

  10. C++20 std::atomic<float>- std::atomic<double>.specializations

    4 C++20 includes specializations for atomic<float> and atomic<double>. Can anyone here explain for what practical purpose this should be good for?