diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-11 16:04:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-11 16:04:25 +0000 |
commit | fb39f191da0ee2ae9e00deedc30ffe1485b1855c (patch) | |
tree | d42c5eb2d2dfdf5be11177f1bbf0b48dabfaae0b /testsuites/psxtests/psx02/task.c | |
parent | Interruptible by signals state was added to the STATES_BLOCKED set. It (diff) | |
download | rtems-fb39f191da0ee2ae9e00deedc30ffe1485b1855c.tar.bz2 |
modified to test pthread_kill() to self and pthread_kill() to a blocked
thread. nanosleep() can be interrupted and return the time remaining.
Diffstat (limited to 'testsuites/psxtests/psx02/task.c')
-rw-r--r-- | testsuites/psxtests/psx02/task.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx02/task.c b/testsuites/psxtests/psx02/task.c index 354a32bb0e..410ee32346 100644 --- a/testsuites/psxtests/psx02/task.c +++ b/testsuites/psxtests/psx02/task.c @@ -31,12 +31,12 @@ void *Task_1_through_3( int status; for ( i=0 ; i<5 ; i++ ) { - seconds = sleep( 1 ); - assert( !seconds ); - print_current_time( "Task1: ", "" ); status = pthread_kill( Init_id, SIGUSR1 ); assert( !status ); + + seconds = sleep( 1 ); + assert( !seconds ); } puts( "*** END OF POSIX TEST 2 ***" ); exit( 0 ); |