|
Boost Users : |
Subject: [Boost-users] scope_lock question
From: Jeff Dunlap (jeff_j_dunlap_at_[hidden])
Date: 2013-02-21 20:22:49
I plan to start using Boost Thread, but for now I have a multithreaded Win32
application that does not use boost.
Although the threads were not created with Boost Thread, can I use
boost::mutex::scoped_lock to protect some new functions I write for the app?
Example:
boost::mutex mutex;
void whatever()
{
boost::mutex::scoped_lock lock(mutex);
// will this be protected even though the
// thread was not created using Boost?
}
Thank you
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net