@@ -134,7 +134,7 @@ RTM_EXPORT(rt_mp_init);
134134rt_err_t rt_mp_detach (struct rt_mempool * mp )
135135{
136136 struct rt_thread * thread ;
137- register rt_ubase_t temp ;
137+ register rt_ubase_t level ;
138138
139139 /* parameter check */
140140 RT_ASSERT (mp != RT_NULL );
@@ -145,7 +145,7 @@ rt_err_t rt_mp_detach(struct rt_mempool *mp)
145145 while (!rt_list_isempty (& (mp -> suspend_thread )))
146146 {
147147 /* disable interrupt */
148- temp = rt_hw_interrupt_disable ();
148+ level = rt_hw_interrupt_disable ();
149149
150150 /* get next suspend thread */
151151 thread = rt_list_entry (mp -> suspend_thread .next , struct rt_thread , tlist );
@@ -160,7 +160,7 @@ rt_err_t rt_mp_detach(struct rt_mempool *mp)
160160 rt_thread_resume (thread );
161161
162162 /* enable interrupt */
163- rt_hw_interrupt_enable (temp );
163+ rt_hw_interrupt_enable (level );
164164 }
165165
166166 /* detach object */
@@ -250,7 +250,7 @@ RTM_EXPORT(rt_mp_create);
250250rt_err_t rt_mp_delete (rt_mp_t mp )
251251{
252252 struct rt_thread * thread ;
253- register rt_ubase_t temp ;
253+ register rt_ubase_t level ;
254254
255255 RT_DEBUG_NOT_IN_INTERRUPT ;
256256
@@ -263,7 +263,7 @@ rt_err_t rt_mp_delete(rt_mp_t mp)
263263 while (!rt_list_isempty (& (mp -> suspend_thread )))
264264 {
265265 /* disable interrupt */
266- temp = rt_hw_interrupt_disable ();
266+ level = rt_hw_interrupt_disable ();
267267
268268 /* get next suspend thread */
269269 thread = rt_list_entry (mp -> suspend_thread .next , struct rt_thread , tlist );
@@ -278,7 +278,7 @@ rt_err_t rt_mp_delete(rt_mp_t mp)
278278 rt_thread_resume (thread );
279279
280280 /* enable interrupt */
281- rt_hw_interrupt_enable (temp );
281+ rt_hw_interrupt_enable (level );
282282 }
283283
284284 /* release allocated room */
0 commit comments