X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.h;h=db269398ab8462aa54c8ee515ad6e1b22d81ab64;hb=cf5af2b25de263a964bf29a7465cdfe536d32e59;hp=fa118c188ac979d690fc2b9eb8026915d5534ca2;hpb=ec655581947c0ffa382f23c1bed50099438c34ac;p=bertos.git diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index fa118c18..db269398 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -281,7 +281,7 @@ INLINE void proc_permit(void) * \note This accessor is needed because _preempt_forbid_cnt * must be absoultely private. */ -INLINE bool proc_allowed(void) +INLINE bool proc_preemptAllowed(void) { #if CONFIG_KERN_PREEMPT extern cpu_atomic_t _preempt_forbid_cnt; @@ -291,6 +291,9 @@ INLINE bool proc_allowed(void) #endif } +/** Deprecated, use the proc_preemptAllowed() macro. */ +#define proc_allowed() proc_preemptAllowed() + /** * Execute a block of \a CODE atomically with respect to task scheduling. */