summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Process.inc
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2013-02-19 11:28:45 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2013-02-19 11:28:45 +0000
commit8b6a4de64a13a57c8c3233b4fc6f74d892c6b2b1 (patch)
tree06573cb5881dfec81516d01d32bd19302645746f /llvm/lib/Support/Unix/Process.inc
parentd26b3334b1e9bac59f56718329b9648d8d85fd86 (diff)
downloadbcm5719-llvm-8b6a4de64a13a57c8c3233b4fc6f74d892c6b2b1.tar.gz
bcm5719-llvm-8b6a4de64a13a57c8c3233b4fc6f74d892c6b2b1.zip
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
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud