2 #define LIBSHARED_PAL_PTI_GET_LOGICAL_PROCESSOR_NUMBER( libshared_pal_thread_info ) (libshared_pal_thread_info).logical_processor_number
3 #define LIBSHARED_PAL_PTI_GET_WINDOWS_PROCESSOR_GROUP_NUMBER( libshared_pal_thread_info ) (libshared_pal_thread_info).windows_processor_group_number
4 #define LIBSHARED_PAL_PTI_GET_NUMA_NODE_ID( libshared_pal_thread_info ) (libshared_pal_thread_info).numa_node_id
5 #define LIBSHARED_PAL_PTI_GET_THREAD_FUNCTION( libshared_pal_thread_info ) (libshared_pal_thread_info).thread_function
6 #define LIBSHARED_PAL_PTI_GET_THREAD_ARGUMENT( libshared_pal_thread_info ) (libshared_pal_thread_info).thread_argument
9 struct libshared_pal_thread_info
11 // TRD : this struct must be user-allocated and last till the thread ends - needed for thread pinning on android
14 logical_processor_number,
16 windows_processor_group_number;
18 libshared_pal_thread_return_t
19 (LIBSHARED_PAL_THREAD_CALLING_CONVENTION *thread_function)( void *thread_argument );
25 /***** public prototypes *****/
26 int libshared_pal_thread_start( libshared_pal_thread_handle_t *thread_handle,
27 struct libshared_pal_thread_info *pti );
29 void libshared_pal_thread_wait( libshared_pal_thread_handle_t thread_handle );