I am looking at the following code:
inline void* interlocked_read_acquire(void* volatile* x);
and am wondering why not just a volatile void*
as an argument. In general what is the semantics or definition of a volatile*
? I am also making the assumption that you could use the volatile*
qualifier with any other type besides void. Is that correct?
Use cdecl or the clockwise spiral rule to decipher C-style declarations :
void* volatile* x
which is different from :
volatile void* x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With