Lines Matching defs:thread
25 thread_t* thread = get_current_thread();
32 bool old_preempt_pending = thread->preempt_pending;
36 thread->preempt_pending = false;
41 ASSERT(thread->preempt_pending);
45 thread->preempt_pending = false;
47 ASSERT(thread->preempt_pending);
50 thread->preempt_pending = old_preempt_pending;
78 thread_t* thread = get_current_thread();
84 ASSERT_EQ(thread->preempt_pending, false, "");
120 thread_t* thread = get_current_thread();
127 EXPECT_EQ(thread->preempt_pending, true, "");
129 EXPECT_EQ(thread->preempt_pending, false, "");
137 EXPECT_EQ(thread->preempt_pending, true, "");
140 EXPECT_EQ(thread->preempt_pending, false, "");
148 thread_t* thread = get_current_thread();
154 EXPECT_EQ(thread->preempt_pending, true, "");
159 EXPECT_EQ(thread->preempt_pending, false, "");
168 EXPECT_EQ(thread->preempt_pending, false, "");
181 thread_t* thread = get_current_thread();
196 EXPECT_EQ(thread->preempt_pending, true, "");
199 EXPECT_EQ(thread->preempt_pending, false, "");
209 thread_t* thread = get_current_thread();
215 // preempt this thread.
216 while (thread->preempt_pending) {}
234 thread_t* thread = get_current_thread();
244 // accidentally call any blocking operations that cause our thread to
254 EXPECT_EQ(thread->preempt_pending, true, "");
263 thread_t* thread = get_current_thread();
280 EXPECT_EQ(thread->preempt_pending, false, "");