Fix on-demand initialization race conditions [threadpool.c]. (mono/mono#18165)
authorJay Krell <jaykrell@microsoft.com>
Thu, 12 Dec 2019 22:46:06 +0000 (14:46 -0800)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 12 Dec 2019 22:46:06 +0000 (23:46 +0100)
commit1aa9738fcd964c6b5900523ea0454e4706654420
treef728361273e7145de4728db81acd7ff2493dc1b9
parent9c387711a343dc515c4cbaf3f3649167872215de
Fix on-demand initialization race conditions [threadpool.c]. (mono/mono#18165)

Fix on-demand initialization race conditions [threadpool.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/f96ba075a1f1712c1c34e126870f9df89852ce3c
src/mono/mono/metadata/threadpool.c