diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-27 08:02:03 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 16:16:23 +0200 |
commit | 5a598ac99b0de720a04afc5e2ac6764117589b90 (patch) | |
tree | 811d57df33c0f4fcc1cce61095cb5c0a33eadd7c /cpukit/libnetworking/rtems/rtems_glue.c | |
parent | posix: Delete POSIX_Mutex_Protocol::process_shared (diff) | |
download | rtems-5a598ac99b0de720a04afc5e2ac6764117589b90.tar.bz2 |
score: Add CORE mutex variants
Add CORE_recursive_mutex_Control and CORE_ceiling_mutex_Control to avoid
the run-time evaluation of attributes to figure out how a particular
mutex methods should behave. Start with the no protocol variants. This
eliminates the CORE_MUTEX_DISCIPLINES_FIFO and
CORE_MUTEX_DISCIPLINES_PRIORITY disciplines.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index 9b6338c5e3..45bb4d2231 100644 --- a/cpukit/libnetworking/rtems/rtems_glue.c +++ b/cpukit/libnetworking/rtems/rtems_glue.c @@ -118,7 +118,7 @@ rtems_bsdnet_semaphore_release_recursive(void) nest_count = the_networkSemaphore ? - the_networkSemaphore->Core_control.mutex.nest_count : 0; + the_networkSemaphore->Core_control.Mutex.Recursive.Mutex.nest_count : 0; for (i = 0; i < nest_count; ++i) { rtems_bsdnet_semaphore_release(); } @@ -378,7 +378,7 @@ rtems_bsdnet_semaphore_obtain (void) _Thread_queue_Context_initialize(&queue_context); _ISR_lock_ISR_disable(&queue_context.Lock_context); status = _CORE_mutex_Seize ( - &the_networkSemaphore->Core_control.mutex, + &the_networkSemaphore->Core_control.Mutex.Recursive.Mutex, _Thread_Executing, 1, /* wait */ 0, /* forever */ @@ -411,7 +411,7 @@ rtems_bsdnet_semaphore_release (void) _Thread_queue_Context_initialize(&queue_context); _ISR_lock_ISR_disable(&queue_context.Lock_context); status = _CORE_mutex_Surrender ( - &the_networkSemaphore->Core_control.mutex, + &the_networkSemaphore->Core_control.Mutex.Recursive.Mutex, &queue_context ); if (status != STATUS_SUCCESSFUL) |