Search code examples
c++exceptiongccatomicbuilt-in

What exception guarantees do gcc atomic builtins offer?


I cannot find documentation which states what exception guarantees (none, basic, strong, nothrow) the gcc atomic builtins (e.g. __sync_synchronize()) offer. Can anyone provide details on this?


Solution

  • Since they are usable in C, which does not have exceptions, none of them will throw.