title: How to use atomic variables in C?
body: <p>I need to use an atomic variable in C as this variable is accessed across different threads. Don't want a race condition. </p>
  
  <p>My code is running on CentOS. What are my options?</p>