[mutex] Make mono_os_mutex_* functions return more meaningful value
authorLudovic Henry <ludovic@xamarin.com>
Wed, 13 Jul 2016 11:10:01 +0000 (13:10 +0200)
committerLudovic Henry <ludovic@xamarin.com>
Tue, 26 Jul 2016 12:02:17 +0000 (14:02 +0200)
commit98284703dec53f1dd5664bfb25ee589d7aef430f
tree82bedb9b537db9102de2112d8c4c27853933f58d
parent0a042da3ef8da945d51f0e9405ff2fcb57d39773
[mutex] Make mono_os_mutex_* functions return more meaningful value

By asserting on error, we ensure that we return from these functions only when successfull, or when it makes sense to return an error (for example, timedwait return -1 only on timeout).
mono/io-layer/io.c
mono/io-layer/shared.c
mono/mini/debugger-agent.c
mono/utils/mono-coop-mutex.h
mono/utils/mono-os-mutex.h
mono/utils/w32handle.c