Nana C++ Library An open-source C++ framework project The Programmer's Guide |
||||||||||||||
nana::threads::mutex Description The class mutex provides an exclusive ownership non-recursive mutex. Model of None Public base classes None Typedefs
Members
File nana/threads/mutex.hpp Notes 1, Reacquires the ownership for a owned mutex, it throws the std::runtime_error to avoid a deadlock. int main() { nana::threads::mutex mutex; mutex.lock(); //Acquires the ownership. mutex.lock(); //It throws the std::runtime_error because the ownership is obtained. } See also None. Move to The Nana Programmer's Guide Main Page |
||||||||||||||