[threads] Rework MonoThreadInfoCallbacks.thread_{register,detach,unregister} callback...
[mono.git] / mono / utils / mono-threads-netbsd.c
1 /**
2  * \file
3  */
4
5 #include <config.h>
6
7 #if defined(__NetBSD__)
8
9 #include <mono/utils/mono-threads.h>
10 #include <pthread.h>
11
12 void
13 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
14 {
15         pthread_attr_t attr;
16
17         *staddr = NULL;
18         *stsize = (size_t)-1;
19
20         pthread_attr_init (&attr);
21         pthread_attr_get_np (pthread_self (), &attr);
22
23         pthread_attr_getstack (&attr, (void**)staddr, stsize);
24         pthread_attr_destroy (&attr);
25 }
26
27 #endif