Fix WaitHandle usage in delegates.
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 21 Dec 2006 18:29:27 +0000 (18:29 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 21 Dec 2006 18:29:27 +0000 (18:29 -0000)
commit138378f225faf1d18a9d5978652062040c49ae4b
treeb26ec155d17e8cc67faf3fc4a6744c565a8b7403
parent084423d47e76b82087a4e27204f21522bb6cd0e9
Fix WaitHandle usage in delegates.
* object-internals.h (mono_wait_handle_get_HANDLE): Declare.
* object.c (mono_wait_handle_new): Use the property set method to
initialize the handle.
(mono_wait_handle_get_handle): New.
* threadpool.c (mono_async_invoke): Use it.
* threads.c (ves_icall_System_Threading_WaitHandle_WaitAll_internal): Likewise.
(ves_icall_System_Threading_WaitHandle_WaitAny_internal): Likewise.

svn path=/trunk/mono/; revision=69876
mono/metadata/ChangeLog
mono/metadata/object-internals.h
mono/metadata/object.c
mono/metadata/threadpool.c
mono/metadata/threads.c