diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-21 11:32:31 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-01-21 11:32:31 +0000 |
commit | 22fe505a817d26c5b88dae4f602b658498a8a18e (patch) | |
tree | 116bcfab560251aaa9af8cd0d581e54470f63c1b /src/chthreads.c | |
parent | 12721da8ad78b13eff38169f59ebbc4db97bfd2b (diff) | |
download | ChibiOS-22fe505a817d26c5b88dae4f602b658498a8a18e.tar.gz ChibiOS-22fe505a817d26c5b88dae4f602b658498a8a18e.tar.bz2 ChibiOS-22fe505a817d26c5b88dae4f602b658498a8a18e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@655 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chthreads.c')
-rw-r--r-- | src/chthreads.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/chthreads.c b/src/chthreads.c index 355687423..28d969e46 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -215,26 +215,6 @@ void chThdSetPriority(tprio_t newprio) { } /** - * @brief Suspends the invoking thread. - * - * @param tpp pointer to a @p Thread pointer, the @p Thread pointer is set - * to point to the suspended process before it enters the - * @p PRSUSPENDED state. The variable pointed by this parameter - * must be set to @p NULL on entry. - * @note The resume operation is meant to be executed into an interrupt or timer - * handler. The handler is also responsible to clear the variable pointed - * by @p tpp after invoking @p chThdResumeI(). - */ -void chThdSuspend(Thread **tpp) { - - chSysLock(); - chDbgAssert(*tpp == NULL, "chthreads.c, chThdSuspend()"); - *tpp = currp; - chSchGoSleepS(PRSUSPENDED); - chSysUnlock(); -} - -/** * @brief Resumes a suspended thread. * * @param tp the pointer to the thread |