diff options
Diffstat (limited to 'c/src/tests/psxtests/psx01/init.c')
-rw-r--r-- | c/src/tests/psxtests/psx01/init.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/c/src/tests/psxtests/psx01/init.c b/c/src/tests/psxtests/psx01/init.c index 5605f9fff0..3469f3f7b4 100644 --- a/c/src/tests/psxtests/psx01/init.c +++ b/c/src/tests/psxtests/psx01/init.c @@ -25,10 +25,12 @@ #define CONFIGURE_INIT #include "system.h" -void Init( +void *Init( void *argument ) { + int status; + pthread_t thread_id; puts( "\n\n*** POSIX TEST 1 ***" ); @@ -38,5 +40,12 @@ void Init( /* exit */ + status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); + assert( !status ); + pthread_exit( NULL ); + + /* just to satisfy compilers which think we did not return anything */ + + return NULL; } |