I am using a third-party C++ library (OpenFst), which is not particularly designed to be thread-safe. It does have some unused Mutex classes in there, though.
Now I would like to call some functions from that library and run them in Boost threads. How can I do that? Do I just have to write additional Mutex classes?
In particular, some of my threads will use some data structures from that library until they find that another thread has produced updated copies of those structures. I'm new to threads and don't really know where to start ...