diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-09-24 14:44:42 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-09-24 14:44:42 +0000 |
commit | 3d4a6e15ed6b9dc80403288b36d22839de6e2320 (patch) | |
tree | f0a74727fb0bf46df069288c724a10f50748b29c /src | |
parent | c9205e2fd961c60cffd1000936340806a8e45558 (diff) | |
download | ChibiOS-3d4a6e15ed6b9dc80403288b36d22839de6e2320.tar.gz ChibiOS-3d4a6e15ed6b9dc80403288b36d22839de6e2320.tar.bz2 ChibiOS-3d4a6e15ed6b9dc80403288b36d22839de6e2320.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@443 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/chthreads.c | 23 | ||||
-rw-r--r-- | src/include/threads.h | 5 |
2 files changed, 7 insertions, 21 deletions
diff --git a/src/chthreads.c b/src/chthreads.c index 88dbefa4d..676df3d68 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -74,15 +74,13 @@ static void memfill(uint8_t *p, uint32_t n, uint8_t v) { * can range from \p LOWPRIO to \p HIGHPRIO. * @param workspace pointer to a working area dedicated to the thread stack * @param wsize size of the working area. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @param arg an argument passed to the thread function. It can be \p NULL. * @return the pointer to the \p Thread structure allocated for the * thread into the working space area. * @note A thread can terminate by calling \p chThdExit() or by simply * returning from its main function. - * @note This function can be used to start a thead from within an interrupt - * handler by manually making it ready with \p chSchReadyI(). + * @note This function can be invoked from within an interrupt handler. */ Thread *chThdInit(void *workspace, size_t wsize, tprio_t prio, tfunc_t pf, void *arg) { @@ -106,8 +104,7 @@ Thread *chThdInit(void *workspace, size_t wsize, * @param prio the priority level for the new thread. Usually the threads are * created with priority \p NORMALPRIO, priorities * can range from \p LOWPRIO to \p HIGHPRIO. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @param arg an argument passed to the thread function. It can be \p NULL. * @return the pointer to the \p Thread structure allocated for the * thread into the working space area. @@ -127,8 +124,7 @@ Thread *chThdCreateStatic(void *workspace, size_t wsize, * @param prio the priority level for the new thread. Usually the threads are * created with priority \p NORMALPRIO, priorities * can range from \p LOWPRIO to \p HIGHPRIO. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @param arg an argument passed to the thread function. It can be \p NULL. * @return the pointer to the \p Thread structure allocated for the * thread into the working space area or \p NULL if the memory cannot @@ -160,8 +156,7 @@ Thread *chThdCreateFromHeap(size_t wsize, tprio_t prio, * @param prio the priority level for the new thread. Usually the threads are * created with priority \p NORMALPRIO, priorities * can range from \p LOWPRIO to \p HIGHPRIO. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @param arg an argument passed to the thread function. It can be \p NULL. * @return the pointer to the \p Thread structure allocated for the * thread into the working space area or \p NULL if the memory cannot @@ -199,16 +194,10 @@ Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio, * \p PRSUSPENDED state and a subsequent call to * \p chThdResume() will make it ready for * execution.</li> - * <li>\p P_TERMINATED, this flag is usually set - * by the \p chThdTerminate() function and it is not - * normally used as parameter for this function. The - * result would be to create a thread with a termination - * request already pending.</li> * </ul> * @param workspace pointer to a working area dedicated to the thread stack * @param wsize size of the working area. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @param arg an argument passed to the thread function. It can be \p NULL. * @return the pointer to the \p Thread structure allocated for the * thread into the working space area. diff --git a/src/include/threads.h b/src/include/threads.h index b2c7bfb1b..5248c807e 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -187,8 +187,6 @@ extern "C" { #endif Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace, size_t wsize, tfunc_t pf, void *arg); - Thread *chThdCreateFast(tprio_t prio, void *workspace, - size_t wsize, tfunc_t pf); void chThdSetPriority(tprio_t newprio); void chThdExit(msg_t msg); Thread *chThdResume(Thread *tp); @@ -254,8 +252,7 @@ extern "C" { * can range from \p LOWPRIO to \p HIGHPRIO. * @param workspace pointer to a working area dedicated to the thread stack * @param wsize size of the working area. - * @param pf the thread function. Returning from this function automatically - * terminates the thread. + * @param pf the thread function * @return the pointer to the \p Thread structure allocated for the * thread into the working space area. * @note A thread can terminate by calling \p chThdExit() or by simply |