Answer by user1969104 for gcc atomics supported types
It is mentioned that for the generic types lock is used.
View Articlegcc atomics supported types
This is a quote from the recent gcc manual regarding the types supported for atomic operations. The four non-arithmetic functions (load, store, exchange, and compare exchange) all have a generic...
View Article