mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 13:01:58 +08:00
added printf of status when not successful
This commit is contained in:
@@ -29,8 +29,10 @@ void *Task_2(
|
|||||||
|
|
||||||
printf( "Task 2: pthread_mutex_lock unavailable (inherit case)\n" );
|
printf( "Task 2: pthread_mutex_lock unavailable (inherit case)\n" );
|
||||||
status = pthread_mutex_lock( &Mutex2_id );
|
status = pthread_mutex_lock( &Mutex2_id );
|
||||||
printf( "Task 2: mutex acquired\n" );
|
if ( status )
|
||||||
|
printf( "status =%d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
printf( "Task 2: mutex acquired\n" );
|
||||||
|
|
||||||
/* switch to init */
|
/* switch to init */
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,10 @@ void *Task_2(
|
|||||||
|
|
||||||
printf( "Task 2: pthread_mutex_lock unavailable (inherit case)\n" );
|
printf( "Task 2: pthread_mutex_lock unavailable (inherit case)\n" );
|
||||||
status = pthread_mutex_lock( &Mutex2_id );
|
status = pthread_mutex_lock( &Mutex2_id );
|
||||||
printf( "Task 2: mutex acquired\n" );
|
if ( status )
|
||||||
|
printf( "status =%d\n", status );
|
||||||
assert( !status );
|
assert( !status );
|
||||||
|
printf( "Task 2: mutex acquired\n" );
|
||||||
|
|
||||||
/* switch to init */
|
/* switch to init */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user