function test_pal_thread_wait

From liblfds.org
Jump to navigation Jump to search

Source Files

└───test
    └───src
        └───porting_abstraction_layer_thread_wait.c

Prototype

void test_pal_thread_wait( test_pal_thread_state_t thread_state );

Parameters

test_pal_thread_state_t thread_state

A thread state, obtained from test_pal_thread_start.

Notes

The test programme typically for a test runs one thread per logical core and then waits for those threads to complete. This function provides the functionality to wait on a thread state until the thread has completed.

Example

void test_pal_thread_wait( test_pal_thread_state_t thread_state )
{
  WaitForSingleObject( thread_state, INFINITE );

  return;
}

See Also