Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
openmp/runtime/test/omp_testsuite.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
// encapsulates the information about a pthread-callable function | // encapsulates the information about a pthread-callable function | ||||
struct thread_func_info_t { | struct thread_func_info_t { | ||||
void* (*start_routine)(void*); | void* (*start_routine)(void*); | ||||
void* arg; | void* arg; | ||||
}; | }; | ||||
// call the void* start_routine(void*); | // call the void* start_routine(void*); | ||||
static DWORD __thread_func_wrapper(LPVOID lpParameter) { | static DWORD WINAPI __thread_func_wrapper(LPVOID lpParameter) { | ||||
struct thread_func_info_t* function_information; | struct thread_func_info_t* function_information; | ||||
function_information = (struct thread_func_info_t*)lpParameter; | function_information = (struct thread_func_info_t*)lpParameter; | ||||
function_information->start_routine(function_information->arg); | function_information->start_routine(function_information->arg); | ||||
free(function_information); | free(function_information); | ||||
return 0; | return 0; | ||||
} | } | ||||
// attr is ignored | // attr is ignored | ||||
Show All 36 Lines |