}
#endif
+/** Global preemption disable nesting counter. */
+extern int preempt_forbid_cnt;
+
/**
* Disable preemptive task switching.
*
{
#if CONFIG_KERN_PREEMPT
// No need to protect against interrupts here.
- extern int preempt_forbid_cnt;
++preempt_forbid_cnt;
/*
MEMORY_BARRIER;
/* No need to protect against interrupts here. */
- extern int preempt_forbid_cnt;
--preempt_forbid_cnt;
ASSERT(preempt_forbid_cnt >= 0);
#endif
}
-extern int preempt_forbid_cnt;
-
/**
* Execute a block of \a CODE atomically with respect to task scheduling.
*/