Re: [Boost-users] Boost.Thread locking across two functions

14 Jun
2006
14 Jun
'06
9:54 a.m.
On Fri, 09 Jun 2006 22:51:48 -0300, Peteris Krumins [Newsgroups] <pknewsgroups_at_[hidden]> wrote:
is
I don't think it was intended to be used this way, but you can accomplish what you want with the lock_ops<> class: mutex m; lib_lock() { boost::detail::thread::lock_ops<boost::mutex>::lock (m); } lib_unlock() { boost::detail::thread::lock_ops<boost::mutex>::unlock (m); } Moshe
6947
Age (days ago)
6947
Last active (days ago)
0 comments
1 participants
participants (1)
-
Moshe Matitya