THE MUTUAL EXCLUSION ON THREADSTACK

Although ThreadStack has its own mutex functions, you can also use std::mutex class with ThreadStack ( especially the instances of lock_guard and unique_lock template classes ). On the documents sections of this web site, there are some documents about C++ thread ( std::thread ) programming and how the mutex classes that provides exeption safety can be used with ThreadStack.