Fix on-demand initialization race conditions [native-library.c]. (mono/mono#18162)
authorJay Krell <jaykrell@microsoft.com>
Fri, 13 Dec 2019 00:26:07 +0000 (16:26 -0800)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 13 Dec 2019 00:26:07 +0000 (01:26 +0100)
commit2a150ed6e814f23805deab5ca27775a42d0efd0d
tree7e7cd31212baf406fa3baf9d91081e33e63ab8ad
parent2c81a2f11819e1f4c116fe167ec4909f539717da
Fix on-demand initialization race conditions [native-library.c]. (mono/mono#18162)

Fix on-demand initialization race conditions [native-library.c].

Extracted from https://github.com/mono/mono/pull/18150 which reviewer said was too big.

Commit migrated from https://github.com/mono/mono/commit/943a2760ec6fafadd73cc59e1f4f40d5959842d7
src/mono/mono/metadata/native-library.c