diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-06-30 15:03:03 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-06-30 15:03:03 +0000 |
commit | 66a9239a2ceb205d51d307ee9e50c37221f2362c (patch) | |
tree | 0566402e211a00efb9423f701301a3b21bec61a7 /cpukit/score | |
parent | 2008-06-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-66a9239a2ceb205d51d307ee9e50c37221f2362c.tar.bz2 |
Rename __STRICT_ORDER_MUTEX__ to __RTEMS_STRICT_ORDER_MUTEX__.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/score/coremutex.h | 6 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 2 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/coremutex.inl | 2 | ||||
-rw-r--r-- | cpukit/score/src/coremutex.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/coremutexsurrender.c | 10 | ||||
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index cf46e9265c..cc059fa61d 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -104,7 +104,7 @@ typedef enum { */ CORE_MUTEX_TIMEOUT, -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /** This status indicates that a thread not release the mutex which has * the priority inheritance property in a right order. */ @@ -193,7 +193,7 @@ typedef struct { Priority_Control priority_ceiling; } CORE_mutex_Attributes; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*@beief Core Mutex Lock_Chain Struct * * The following defines the control block used to manage lock chain of @@ -242,7 +242,7 @@ typedef struct { Thread_Control *holder; /** This element contains the object Id of the holding thread. */ Objects_Id holder_id; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /** This field is used to manipulate the priority inheritance mutex queue*/ CORE_mutex_order_list queue; #endif diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index fcfac01026..3952d183c8 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -316,7 +316,7 @@ struct Thread_Control_struct { /** This field is the received response packet in an MP system. */ MP_packet_Prefix *receive_packet; #endif -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /**This field is the head of queue of priority inheritance mutex holed by the thread*/ Chain_Control lock_mutex; #endif diff --git a/cpukit/score/inline/rtems/score/coremutex.inl b/cpukit/score/inline/rtems/score/coremutex.inl index 8d417568e9..ccfc411799 100644 --- a/cpukit/score/inline/rtems/score/coremutex.inl +++ b/cpukit/score/inline/rtems/score/coremutex.inl @@ -140,7 +140,7 @@ RTEMS_INLINE_ROUTINE int _CORE_mutex_Seize_interrupt_trylock_body( if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ){ -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index f6e6c80177..6e23561f19 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -65,7 +65,7 @@ void _CORE_mutex_Initialize( if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 29b246983f..47ca7de8db 100644 --- a/cpukit/score/src/coremutexsurrender.c +++ b/cpukit/score/src/coremutexsurrender.c @@ -54,7 +54,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( { Thread_Control *the_thread; Thread_Control *holder; -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ Chain_Node *first_node; #endif holder = the_mutex->holder; @@ -98,7 +98,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ){ -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*Check whether the holder release the mutex in LIFO order if not return error code*/ if(holder->lock_mutex.first != &the_mutex->queue.lock_queue){ @@ -119,7 +119,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ if(the_mutex->queue.priority_before != holder->current_priority) _Thread_Change_priority(holder,the_mutex->queue.priority_before,TRUE); #endif @@ -157,14 +157,14 @@ CORE_mutex_Status _CORE_mutex_Surrender( case CORE_MUTEX_DISCIPLINES_PRIORITY: break; case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; break; case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index eb4df83e50..267d8f60cc 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -123,7 +123,7 @@ boolean _Thread_Initialize( */ _Watchdog_Initialize( &the_thread->Timer, NULL, 0, NULL ); -#ifdef __STRICT_ORDER_MUTEX__ +#ifdef __RTEMS_STRICT_ORDER_MUTEX__ /*Initialize the head of chain of mutex */ _Chain_Initialize_empty(&the_thread->lock_mutex); #endif |