Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / utils / mono-threads-haiku.c
1 #include <config.h>
2
3 #if defined(__HAIKU__)
4
5 #include <mono/utils/mono-threads.h>
6 #include <pthread.h>
7 #include <os/kernel/OS.h>
8
9 void
10 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
11 {
12         thread_info ti;
13         get_thread_info(get_pthread_thread_id(pthread_self()), &ti);
14
15         *staddr = ti.stack_base;
16         *stsize = ti.stack_end - ti.stack_base;
17 }
18
19 #endif