forked from Imagelibrary/rtems
modified to test pthread_kill() to self and pthread_kill() to a blocked
thread. nanosleep() can be interrupted and return the time remaining.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user