mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 17:06:05 +08:00
Experimental atomic_gcc_sync change
This commit is contained in:
parent
cdf660defe
commit
08fc80a2c5
@ -469,7 +469,7 @@ namespace etl
|
||||
// Pre-increment
|
||||
T* operator ++()
|
||||
{
|
||||
return (T*)__sync_add_and_fetch(&value, sizeof(T));
|
||||
return (T*)__sync_add_and_fetch(&(volatile void*)value, sizeof(T));
|
||||
}
|
||||
|
||||
T* operator ++() volatile
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user