I'm editing some of the .cc files and would like to know the preferred method for performing thread synchronization in C++ code. In particular, I noticed that the set and get methods that are called on the gr_oscope_guts class originate from a different thread then that of process_samples, and this is causing problems for me.