8 /****************************************************************************/
9 #if( defined _WIN32 && NTDDI_VERSION >= NTDDI_WINXP )
11 /* TRD : _WIN32 indicates 32-bit or 64-bit Windows
12 NTDDI_VERSION indicates Windows version
13 - WaitForSingleObject requires XP
16 #ifdef TEST_PAL_THREAD_WAIT
17 #error More than one porting abstraction layer matches current platform in test_porting_abstraction_layer_thread_wait.c
20 #define TEST_PAL_THREAD_WAIT
22 void test_pal_thread_wait( test_pal_thread_state_t thread_state )
24 WaitForSingleObject( thread_state, INFINITE );
35 /****************************************************************************/
36 #if( _POSIX_THREADS > 0 )
38 /* TRD : POSIX threads
40 _POSIX_THREADS indicates POSIX threads
41 - pthread_join requires POSIX
44 #ifdef TEST_PAL_THREAD_WAIT
45 #error More than one porting abstraction layer matches current platform in test_porting_abstraction_layer_thread_wait.c
48 #define TEST_PAL_THREAD_WAIT
50 void test_pal_thread_wait( test_pal_thread_state_t thread_state )
52 pthread_join( thread_state, NULL );
63 /****************************************************************************/
64 #if( !defined TEST_PAL_THREAD_WAIT )
66 #error test_pal_thread_wait() not implemented for this platform.