231ff3be8f4299e6d13640a00ae10da24f2128d8
[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_reset_priority(pthread_attr_t *attr)
11 {
12         /* FIXME: Implement this on Haiku */
13 }
14
15 void
16 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
17 {
18         thread_info ti;
19         get_thread_info(get_pthread_thread_id(pthread_self()), &ti);
20
21         *staddr = ti.stack_base;
22         *stsize = ti.stack_end - ti.stack_base;
23 }
24
25 #endif