[coop] Use mono_thread_info_usleep which transition to BLOCKING state
authorLudovic Henry <ludovic@xamarin.com>
Mon, 25 Jan 2016 21:43:47 +0000 (21:43 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Mon, 25 Jan 2016 21:50:02 +0000 (21:50 +0000)
commit2e60eebcef76f71eb52da7ffcc2c5ef310f5a09f
tree9ed9b11dd97a122c37ffc1ef24a083aef5346f83
parent44e2c53f8dcabe26af75488dc8731858e0112140
[coop] Use mono_thread_info_usleep which transition to BLOCKING state

Because we could sleep for too long, while being in RUNNING state, the cooperative suspend would not finish in a timely manner. That would lead to the abort in `mono_threads_wait_pending_operations`.
mono/metadata/threadpool-ms-io.c
mono/sgen/sgen-fin-weak-hash.c
mono/sgen/sgen-gc.c
mono/utils/mono-threads.c