aboutsummaryrefslogtreecommitdiffstats
path: root/src/chthreads.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-09-28 18:42:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-09-28 18:42:04 +0000
commit9a0ef300bce50901d5de3d6d722e29b79a2f9a36 (patch)
tree3f6ba1c9a49c9534d931bbc33baff4368ce25d26 /src/chthreads.c
parent95b238fc867da32f28c74b98b793fbd40345b595 (diff)
downloadChibiOS-9a0ef300bce50901d5de3d6d722e29b79a2f9a36.tar.gz
ChibiOS-9a0ef300bce50901d5de3d6d722e29b79a2f9a36.tar.bz2
ChibiOS-9a0ef300bce50901d5de3d6d722e29b79a2f9a36.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@25 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r--src/chthreads.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/chthreads.c b/src/chthreads.c
index 59c361116..a439eb5b4 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -129,17 +129,6 @@ Thread *chThdCreate(t_prio prio, t_tmode mode, void *workspace,
return tp;
}
-/**
- * Verifies if the specified thread is in the \p PREXIT state.
- * @param tp the pointer to the thread
- * @return \p TRUE if the thread is ended else \p FALSE. \p TRUE ensures that
- * a subsequent call to \p chThdWait() would not block.
- */
-BOOL chThdTerminated(Thread *tp) {
-
- return tp->p_state == PREXIT;
-}
-
#ifdef CH_USE_RESUME
/**
* Resumes a thread created with the \p P_SUSPENDED option.
@@ -176,17 +165,6 @@ void chThdTerminate(Thread *tp) {
chSysUnlock();
}
-
-/**
- * Verifies if the current thread has a termination request pending.
- * @return \p TRUE if the termination was requested. The thread should terminate
- * as soon it is ready to do so.
- */
-BOOL chThdShouldTerminate(void) {
-
- return currp->p_flags & P_TERMINATE ? TRUE : FALSE;
-}
-
#endif
/**
@@ -234,31 +212,4 @@ t_msg chThdWait(Thread *tp) {
}
#endif /* CH_USE_WAITEXIT */
-#ifdef CH_USE_EXIT_EVENT
-/**
- * Returns the exit event source for the specified thread. The source is
- * signaled when the thread terminates.
- * @param tp the pointer to the thread
- * @note When registering on a thread termination make sure the thread
- * is still alive, if you do that after the thread termination
- * then you would miss the event. There are two ways to ensure
- * this:<br>
- * <ul>
- * <li>Create the thread suspended, register on the event source
- * and then resume the thread (recommended).</li>
- * <li>Create the thread with a lower priority then register on it.
- * This does not work if the hardware is capable of multiple
- * physical threads.</li>
- * </ul>
- * @note You dont need to unregister from a terminated thread because
- * the event source becomes inactive.
- * @note The function is available only if the \p CH_USE_EXIT_EVENT
- * option is enabled in \p chconf.h.
- */
-EventSource *chThdGetExitEventSource(Thread *tp) {
-
- return &tp->p_exitesource;
-}
-#endif /* CH_USE_EXIT_EVENT */
-
/** @} */