Issue #2564 has been updated by Aliaksey Kandratsenka.


I don't think you should unlock the mutex before re-initializing it. Because a) it can be unsafe depending on threading implementation details b) pthread_mutex_init doesn't assume any previous state of mutex it inits and must not.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2564

----------------------------------------
http://redmine.ruby-lang.org