[runtime] Implement the wait in mono_runtime_class_init_full () using a cond variable...
authorZoltan Varga <vargaz@gmail.com>
Fri, 20 Jan 2017 23:26:29 +0000 (18:26 -0500)
committerZoltan Varga <vargaz@gmail.com>
Mon, 23 Jan 2017 05:40:14 +0000 (00:40 -0500)
commit74e0eb90f35deb21494bf22701d6deedf7b4bfec
tree9f08d9421885cb7f842d83703a7fc8f6f9274cc1
parent359fd834fd6b71d963d8919ea3ba556c69bd8677
[runtime] Implement the wait in mono_runtime_class_init_full () using a cond variable instead of a mutex.

Previously it waited for the initialization to be done using a mutex lock/unlock, which needed some additional checks before acquiring the lock. Use a normal cond variable instead. Remove some code duplication from the lock cleanup code.
mono/metadata/object.c