[monitor] Fix monitor aborts (#8757)
commitae5d45e55959247807b860acffd6ebd07de7f13b
authorVlad Brezae <brezaevlad@gmail.com>
Mon, 21 May 2018 18:04:56 +0000 (21 21:04 +0300)
committerLudovic Henry <luhenry@microsoft.com>
Mon, 21 May 2018 18:04:56 +0000 (21 14:04 -0400)
treef7a5d734d2ec8c4df36ba141a4a835df0bd2f9d7
parentd878e6fde1f29f4c553e8fc766cd0846a353fa47
[monitor] Fix monitor aborts (#8757)

Replaces semaphore usage with condition variable.

Fixes https://github.com/mono/mono/issues/6834
mono/metadata/monitor.c
mono/metadata/monitor.h
mono/tests/Makefile.am