diff options
Diffstat (limited to 'cpukit/posix/src/sempost.c')
-rw-r--r-- | cpukit/posix/src/sempost.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cpukit/posix/src/sempost.c b/cpukit/posix/src/sempost.c index f1fb7fa693..49142b25a2 100644 --- a/cpukit/posix/src/sempost.c +++ b/cpukit/posix/src/sempost.c @@ -47,18 +47,12 @@ int sem_post( sem_t *_sem ) } if ( RTEMS_PREDICT_TRUE( heads != NULL ) ) { - const Thread_queue_Operations *operations; - Thread_Control *first; - _Thread_queue_Context_set_ISR_level( &queue_context, level ); - operations = SEMAPHORE_TQ_OPERATIONS; - first = ( *operations->first )( heads ); - - _Thread_queue_Extract_critical( + _Thread_queue_Surrender_no_priority( &sem->Queue.Queue, - operations, - first, - &queue_context + heads, + &queue_context, + SEMAPHORE_TQ_OPERATIONS ); return 0; } |