[coop] Refactor/reuse mono_value_box_handle/mono_value_box_checked and reduce raw...
[mono-project.git] / mono / utils / mono-threads-haiku.c
blobe5c3563902ab6c79a6107c8a0e8b55e291764a48
1 #include <config.h>
3 #if defined(__HAIKU__)
5 #include <mono/utils/mono-threads.h>
6 #include <pthread.h>
7 #include <os/kernel/OS.h>
9 void
10 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
12 thread_info ti;
13 get_thread_info(get_pthread_thread_id(pthread_self()), &ti);
15 *staddr = ti.stack_base;
16 *stsize = ti.stack_end - ti.stack_base;
19 #endif