Hi,
I am working in a 32 bit machine, where i need to use atomic on 64 bit variables.
Is there a wrapper provided in freebsd, which i could use.
Had a look at the man page of atomic - but couldnt find anything.
One option, which i think, if there is no inbuilt wrapper, is to have a structure with mtx and the 64 bit variable and use the mtx to protect it.
Any other ideas ?
Thanks,
Viswesh
I am working in a 32 bit machine, where i need to use atomic on 64 bit variables.
Is there a wrapper provided in freebsd, which i could use.
Had a look at the man page of atomic - but couldnt find anything.
One option, which i think, if there is no inbuilt wrapper, is to have a structure with mtx and the 64 bit variable and use the mtx to protect it.
Any other ideas ?
Thanks,
Viswesh