Lines Matching refs:thread

25     thread_t* thread = get_current_thread();  in timer_callback_func()  local
32 bool old_preempt_pending = thread->preempt_pending; in timer_callback_func()
36 thread->preempt_pending = false; in timer_callback_func()
41 ASSERT(thread->preempt_pending); in timer_callback_func()
45 thread->preempt_pending = false; in timer_callback_func()
47 ASSERT(thread->preempt_pending); in timer_callback_func()
50 thread->preempt_pending = old_preempt_pending; in timer_callback_func()
78 thread_t* thread = get_current_thread(); in test_inc_dec_disable_counts() local
84 ASSERT_EQ(thread->preempt_pending, false, ""); in test_inc_dec_disable_counts()
120 thread_t* thread = get_current_thread(); in test_decrement_clears_preempt_pending() local
127 EXPECT_EQ(thread->preempt_pending, true, ""); in test_decrement_clears_preempt_pending()
129 EXPECT_EQ(thread->preempt_pending, false, ""); in test_decrement_clears_preempt_pending()
137 EXPECT_EQ(thread->preempt_pending, true, ""); in test_decrement_clears_preempt_pending()
140 EXPECT_EQ(thread->preempt_pending, false, ""); in test_decrement_clears_preempt_pending()
148 thread_t* thread = get_current_thread(); in test_blocking_clears_preempt_pending() local
154 EXPECT_EQ(thread->preempt_pending, true, ""); in test_blocking_clears_preempt_pending()
159 EXPECT_EQ(thread->preempt_pending, false, ""); in test_blocking_clears_preempt_pending()
168 EXPECT_EQ(thread->preempt_pending, false, ""); in test_blocking_clears_preempt_pending()
181 thread_t* thread = get_current_thread(); in test_interrupt_preserves_preempt_pending() local
196 EXPECT_EQ(thread->preempt_pending, true, ""); in test_interrupt_preserves_preempt_pending()
199 EXPECT_EQ(thread->preempt_pending, false, ""); in test_interrupt_preserves_preempt_pending()
209 thread_t* thread = get_current_thread(); in test_interrupt_clears_preempt_pending() local
216 while (thread->preempt_pending) {} in test_interrupt_clears_preempt_pending()
234 thread_t* thread = get_current_thread(); in test_interrupt_with_preempt_disable() local
254 EXPECT_EQ(thread->preempt_pending, true, ""); in test_interrupt_with_preempt_disable()
263 thread_t* thread = get_current_thread(); in test_interrupt_with_resched_disable() local
280 EXPECT_EQ(thread->preempt_pending, false, ""); in test_interrupt_with_resched_disable()