PCM tips

Understanding C++ std::atomic

This video is helpful to understand how to use std::atomic<T>, particularly for the memory order concept, i.e. std::memory_order::acquire.

TODO: check usefuless of this other video https://www.youtube.com/watch?v=LtwQ7xZZIF4

How to get notifications when a long command is done ?

If you run your measures and it takes a lot of time, it might be neat to receive a notification on your phone or your computer when it is finished. There is a very nice opensource service for that called NTFY. You need to install one of their clients on your device and then for an arbitrary channel name. A simple HTTP POST request will be enough to send the notification with a custom message. The <chanelid> here can be anything, just pick something unique or not too easy to guess to avoid using the same one as someone else.

curl ntfy.sh/<chanelid> -d "Measures are done !"