proc_setPri(): nop fallback when priorities are disabled
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:36:03 +0000 (11:36 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:36:03 +0000 (11:36 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1687 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc.h

index 8a18bf7447c8fcc623cddefccfb89734ea82c704..6a4aff8be5dc8ff9eb9284de283ff75eb15cd159 100644 (file)
@@ -78,7 +78,11 @@ const char *proc_name(struct Process *proc);
 const char *proc_currentName(void);
 
 #if CONFIG_KERN_PRI
-void proc_setPri(struct Process *proc, int pri);
+       void proc_setPri(struct Process *proc, int pri);
+#else
+       INLINE void proc_setPri(UNUSED_ARG(struct Process *,proc), UNUSED_ARG(int, pri))
+       {
+       }
 #endif
 
 /**