mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Experimental atomic_gcc_sync change
This commit is contained in:
parent
b973b01c08
commit
5f0dae41de
@ -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