mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Experimental atomic_gcc_sync change
This commit is contained in:
parent
e82538eacf
commit
b973b01c08
@ -475,7 +475,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