[build] Skips RemoteExecuted bases tests on monodroid
[mono-project.git] / mono / utils / mono-threads-freebsd.c
blobf854fba31a49130a72c7d25146ff6faa06b39d42
1 /**
2 * \file
3 */
5 #include <config.h>
7 #if defined(__FreeBSD__)
9 #include <mono/utils/mono-threads.h>
10 #include <pthread.h>
11 #include <pthread_np.h>
13 void
14 mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)
16 pthread_attr_t attr;
17 guint8 *current = (guint8*)&attr;
19 *staddr = NULL;
20 *stsize = (size_t)-1;
22 pthread_attr_init (&attr);
23 pthread_attr_get_np (pthread_self (), &attr);
25 pthread_attr_getstack (&attr, (void**)staddr, stsize);
26 pthread_attr_destroy (&attr);
29 #endif