Files
myriadcoin/src
Alexander Kjeldaas bfc9620799 Simplify CMutexLock
o Remove unused Leave and GetLock functions
o Make Enter and TryEnter private.
o Simplify Enter and TryEnter.
  boost::unique_lock doesn't really know whether the
  mutex it wraps is locked or not when the defer_lock
  option is used.
  The boost::recursive_mutex does not expose this
  information, so unique_lock only infers this
  knowledge.  When taking the lock is defered, it
  (randomly) assumes that the lock is not taken.
  boost::unique_lock has the following definition:

        unique_lock(Mutex& m_,defer_lock_t):
            m(&m_),is_locked(false)
        {}

        bool owns_lock() const
        {
            return is_locked;
        }
  Thus it is a mistake to check owns_lock() in Enter
  and TryEnter - they will always return false.
2012-11-14 00:00:23 -03:00
..
2012-04-27 10:14:33 -04:00
2012-11-10 22:08:46 +01:00
2012-11-10 00:09:57 +01:00
2012-08-28 17:13:11 -04:00
2012-10-29 13:34:35 -04:00
2012-08-21 22:50:00 -04:00
2012-05-18 22:02:28 +08:00
2012-05-18 22:02:28 +08:00
2012-10-25 16:12:40 +02:00
2012-05-18 22:02:28 +08:00
2012-10-20 23:08:56 +02:00
2012-10-20 23:08:56 +02:00
2012-05-18 22:02:28 +08:00
2012-07-04 16:40:16 +02:00
2012-10-04 15:49:15 +02:00
2012-10-20 23:08:57 +02:00
2012-11-09 01:06:06 +01:00
2012-11-14 00:00:23 -03:00
2012-06-25 12:28:29 +08:00
2012-10-20 23:08:57 +02:00
2012-10-08 17:46:45 -04:00