git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1152 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2009-09-06 09:53:29 +00:00
parent 5d2ad7ce56
commit 7f7253bec2
1 changed files with 0 additions and 16 deletions

View File

@ -71,22 +71,6 @@ Thread *chSchReadyI(Thread *tp) {
return tp; return tp;
} }
#if 0
INLINE Thread *chSchReadyReverseI(Thread *tp) {
Thread *cp;
tp->p_state = PRREADY;
cp = (Thread *)&rlist.r_queue;
do {
cp = cp->p_prev;
} while ((cp->p_prio < tp->p_prio) && (cp->p_prio < tp->p_prio));
/* Insertion on p_next.*/
tp->p_next = (tp->p_prev = cp)->p_next;
tp->p_next->p_prev = cp->p_next = tp;
return tp;
}
#endif
/** /**
* @brief Puts the current thread to sleep into the specified state. * @brief Puts the current thread to sleep into the specified state.
* @details The thread goes into a sleeping state. The @ref thread_states are * @details The thread goes into a sleeping state. The @ref thread_states are