This class provides lock() and unlock() methods on a mutex object to assign access on the resource. setMutexDebug() can turn on debug messages or set them off. setMutexDebugMesg() can print the debug message whenever lock or unlock is performed.
The create() method can create a new thread and execute the function to be performed in a separate thread.
The thread_demo.cxx program creates a mutual exclusion object 'quantaMutex' and a threads object 'quantaThread' the demos sets up 100 threads and executes the function threadedFunction() in each thread (which simply prints out the thread number). The threadedFunction() locks and unlocks the mutex object.
for more information: Post your questions online on the Quanta forum page.