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