Boost logo

Boost Users :

From: James Zappia (James.Zappia_at_[hidden])
Date: 2002-12-04 13:27:32


Thank you, that worked. I see what I was doing wrong.

One thing I don't understand about the alternative method...

> boost::try_mutex::scoped_try_lock lock(mutex); // does a try_lock
> while (!lock) {
> cout << "trying...";
> lock.try_lock();
> }

How does "!lock" in the "while (!lock) { ... }" statement determine whether
it's true or false? Does it call a function in the scoped_try_lock class?
(sorry if that's a lame question...)

Thanks again for the help, very much appreciated.
James

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


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