Skip to content
  1. Feb 21, 2013
  2. Feb 19, 2013
    • David Chisnall's avatar
      Fix a bug in mutex_try_to_lock. This was previously trying to unlock a mutex... · 8b6a4de6
      David Chisnall authored
      Fix a bug in mutex_try_to_lock.  This was previously trying to unlock a mutex that it didn't own, causing an assertion failure in mutex.cpp.  The issue was that the unique_lock went out of scope, releasing the lock on m, then m.unlock() was called on an already-unlocked mutex.  
      
      This change removes the spurious m.unlock() call.  
      
      If this test was previously passing for anyone with assertions enabled, then they should investigate bugs in their pthread implementation, as pthread_unlock() should not return 0 if the mutex is currently unlocked.
      
      llvm-svn: 175506
      8b6a4de6
  3. Feb 15, 2013
  4. Feb 12, 2013
  5. Feb 11, 2013
  6. Feb 08, 2013
  7. Feb 07, 2013
  8. Feb 06, 2013
  9. Feb 05, 2013
  10. Jan 22, 2013
Loading