X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-threads.c;h=d56564f86a7f419bce39ac4434d85351fa301435;hb=3fb128ac0de7cca459098c2dc3359d81f5e48353;hp=e811b77fcf2997f0be978fc9b0dfa58e0ad7e81c;hpb=4b4409213a8d5688d1d5bad9a5df9186e456db5c;p=mono.git diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c index e811b77fcf2..d56564f86a7 100644 --- a/mono/utils/mono-threads.c +++ b/mono/utils/mono-threads.c @@ -286,14 +286,14 @@ mono_thread_info_attach (void *baseptr) } void -mono_thread_info_dettach (void) +mono_thread_info_detach (void) { MonoThreadInfo *info; if (!mono_threads_inited) { /* This can happen from DllMain(THREAD_DETACH) on Windows, if a thread * is created before an embedding API user initialized Mono. */ - THREADS_DEBUG ("mono_thread_info_dettach called before mono_threads_init\n"); + THREADS_DEBUG ("mono_thread_info_detach called before mono_threads_init\n"); return; } info = mono_native_tls_get_value (thread_info_key); @@ -759,3 +759,16 @@ mono_thread_info_exit (void) { mono_threads_core_exit (0); } + +/* + * mono_thread_info_open_handle: + * + * Return a io-layer/win32 handle for the current thread. + * The handle need to be closed by calling CloseHandle () when it is no + * longer needed. + */ +HANDLE +mono_thread_info_open_handle (void) +{ + return mono_threads_core_open_handle (); +}