If I understand correctly, every second thread reads voltage, writes it to some "data structure", and other threads read from this data structure from time to time (am I right?)
" " (int, char .. x86, ), , , , ( , ). , , / / , .
" " - undefined, .
" " , , , .
" " , std::atomic . , , -, .