1 #include "internal.h"
\r
7 /****************************************************************************/
\r
8 #if (defined _WIN32 && defined _MSC_VER && !defined WIN_KERNEL_BUILD)
\r
10 /* TRD : any Windows (user-mode) on any CPU with the Microsoft C compiler
\r
12 _WIN32 indicates 64-bit or 32-bit Windows
\r
13 _MSC_VER indicates Microsoft C compiler
\r
14 !WIN_KERNEL_BUILD indicates Windows user-mode
\r
17 void abstraction_thread_wait( thread_state_t thread_state )
\r
19 WaitForSingleObject( thread_state, INFINITE );
\r
30 /****************************************************************************/
\r
31 #if (defined _WIN32 && defined _MSC_VER && defined WIN_KERNEL_BUILD)
\r
33 /* TRD : any Windows on any CPU with the Microsoft C compiler
\r
35 _WIN32 indicates 64-bit or 32-bit Windows
\r
36 _MSC_VER indicates Microsoft C compiler
\r
37 WIN_KERNEL_BUILD indicates Windows kernel
\r
40 void abstraction_thread_wait( thread_state_t thread_state )
\r
42 KeWaitForSingleObject( thread_state, Executive, KernelMode, FALSE, NULL );
\r
53 /****************************************************************************/
\r
54 #if (defined __unix__)
\r
56 /* TRD : any UNIX on any CPU with any compiler
\r
58 I assumed pthreads is available on any UNIX.
\r
60 __unix__ indicates Solaris, Linux, HPUX, etc
\r
63 void abstraction_thread_wait( thread_state_t thread_state )
\r
65 pthread_join( thread_state, NULL );
\r