mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 22:59:47 +08:00
Experimental atomic_gcc_sync change
This commit is contained in:
parent
2544068d64
commit
8eaeaba622
@ -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