function libshared_pal_thread_wait
Jump to navigation
Jump to search
Source Files
└───test_and_benchmark └───libshared ├───inc │ └───libshared │ libtest_porting_abstraction_layer.h └───src └───libshared_porting_abstraction_layer libshared_porting_abstraction_layer_thread_wait.c
Typedefs
typedef [type] libshared_pal_thread_handle_t;
Prototype
void libshared_pal_thread_wait( libshared_pal_thread_handle_t thread_handle );
Parameters
libshared_pal_thread_handle_t thread_handle
- A thread handle, obtained from libshared_pal_thread_start.
Return Value
No return value.
Example
void libshared_pal_thread_wait( libshared_pal_thread_handle_t thread_handle ) { // TRD : thread_handle can be any value in its range WaitForSingleObject( thread_handle, INFINITE ); return; }
Notes
This function when called returns only when the thread represented by thread_handle has terminated and returned.
This functionality turns out not to be available in the Linux kernel, and so currently libshared is not porting to the Linux kernel.