Searched refs:thread_preempt_disable_count (Results 1 - 3 of 3) sorted by relevance

/fuchsia/zircon/kernel/include/kernel/
H A Dinterrupt.h41 if (thread_preempt_disable_count() == 0) {
H A Dthread.h366 static inline uint32_t thread_preempt_disable_count(void) { function
388 DEBUG_ASSERT(thread_preempt_disable_count() < 0xffff);
400 DEBUG_ASSERT(thread_preempt_disable_count() > 0);
417 DEBUG_ASSERT(thread_preempt_disable_count() > 0);
475 DEBUG_ASSERT(thread_preempt_disable_count() > 0);
/fuchsia/zircon/kernel/tests/
H A Dpreempt_disable_tests.cpp26 ASSERT(thread_preempt_disable_count() > 0);
81 ASSERT_EQ(thread_preempt_disable_count(), 0u, "");
88 EXPECT_EQ(thread_preempt_disable_count(), 1u, "");
90 EXPECT_EQ(thread_preempt_disable_count(), 0u, "");
101 EXPECT_EQ(thread_preempt_disable_count(), 2u, "");
104 EXPECT_EQ(thread_preempt_disable_count(), 0u, "");
192 EXPECT_EQ(thread_preempt_disable_count(), 1u, "");

Completed in 71 milliseconds