[w32handle] Remove case where mutex and cond are busy (#3561)
commit6e254547652fb5587c5c7953b262cc49ffab4df1
authorLudovic Henry <ludovic@xamarin.com>
Thu, 15 Sep 2016 08:12:07 +0000 (15 10:12 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2016 08:12:07 +0000 (15 10:12 +0200)
tree0b966958bc0e33096aa74ffabd4c7f014cb4ca54
parenta2ee7a92befd0c89d01ddc020851ed0c6da8457d
[w32handle] Remove case where mutex and cond are busy (#3561)

This code path has not been used for a while now, as mono_os_(mutex|cond)_destroy return -1 in case of error, and not EBUSY.

This is also the only code path that would check the return value, so we can simply remove the returned value, and assert on the error.
mono/utils/mono-coop-mutex.h
mono/utils/mono-os-mutex.h
mono/utils/w32handle.c