From 3c1ad25768e2ecade380ee1a211b93fa4cb3ea22 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 27 May 2016 09:41:18 +0200 Subject: rtems: Simplify rtems_semaphore_delete() Due to the unified status codes, we can now use a common flush and destroy method for semaphore and mutex variants. --- cpukit/score/include/rtems/score/coremuteximpl.h | 14 -------------- cpukit/score/include/rtems/score/coresemimpl.h | 14 -------------- 2 files changed, 28 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h index ccc414827d..f8869b0a42 100644 --- a/cpukit/score/include/rtems/score/coremuteximpl.h +++ b/cpukit/score/include/rtems/score/coremuteximpl.h @@ -314,20 +314,6 @@ Status_Control _CORE_mutex_Surrender( Thread_queue_Context *queue_context ); -RTEMS_INLINE_ROUTINE void _CORE_mutex_Flush( - CORE_mutex_Control *the_mutex, - Thread_queue_Flush_filter filter, - Thread_queue_Context *queue_context -) -{ - _Thread_queue_Flush_critical( - &the_mutex->Wait_queue.Queue, - the_mutex->operations, - filter, - queue_context - ); -} - RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_owner( const CORE_mutex_Control *the_mutex, const Thread_Control *the_thread diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h index 24d8c5114d..487a91b3c7 100644 --- a/cpukit/score/include/rtems/score/coresemimpl.h +++ b/cpukit/score/include/rtems/score/coresemimpl.h @@ -141,20 +141,6 @@ RTEMS_INLINE_ROUTINE Status_Control _CORE_semaphore_Surrender( return status; } -RTEMS_INLINE_ROUTINE void _CORE_semaphore_Flush( - CORE_semaphore_Control *the_semaphore, - const Thread_queue_Operations *operations, - Thread_queue_Context *queue_context -) -{ - _Thread_queue_Flush_critical( - &the_semaphore->Wait_queue.Queue, - operations, - _Thread_queue_Flush_status_unavailable, - queue_context - ); -} - /** * This routine returns the current count associated with the semaphore. * -- cgit v1.2.3