c++ Programming Glossary: rt_data
Atomic swap in GNU C++ http://stackoverflow.com/questions/2478397/atomic-swap-in-gnu-c is that this can be accomplished in g with global Data rt_data Data swap_data Data new_data #ifdef __GNUC__ Atomic pointer.. Atomic pointer swap. Data old_d __sync_lock_test_and_set rt_data new_data #else Non atomic cross your fingers. Data old_d rt_data.. new_data #else Non atomic cross your fingers. Data old_d rt_data rt_data new_data #endif return old_d This is the only place..
|