mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
647fc1227a
If an exception is raised inside Mutex#sleep (via ConditionVariable#wait), we cannot guarantee we can own the mutex in the ensure callback. However, who owns the mutex at that point does not matter. What matters is the Mutex is usable after an exception occurs. * thread_sync.c (rb_mutex_synchronize): only unlock if we own the mutex * spec/ruby/library/conditionvariable/wait_spec.rb: only test lock usability after thread kill. Who owns the lock at any particular moment is an implementation detail which we cannot easily guarantee. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
abbrev | ||
base64 | ||
bigdecimal | ||
bigmath | ||
cgi | ||
complex | ||
conditionvariable | ||
coverage | ||
csv | ||
date | ||
datetime | ||
delegate | ||
digest | ||
drb | ||
English | ||
erb | ||
etc | ||
expect | ||
fiber | ||
find | ||
getoptlong | ||
ipaddr | ||
logger | ||
mathn | ||
matrix | ||
net | ||
observer | ||
open3 | ||
openssl | ||
openstruct | ||
optionparser | ||
pathname | ||
pp | ||
prime | ||
rbconfig | ||
readline | ||
resolv | ||
rexml | ||
scanf | ||
securerandom | ||
set | ||
shellwords | ||
singleton | ||
socket | ||
stringio | ||
stringscanner | ||
syslog | ||
tempfile | ||
thread | ||
time | ||
timeout | ||
tmpdir/dir | ||
uri | ||
weakref | ||
win32ole | ||
yaml | ||
zlib |