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

This commit is contained in:
gdisirio 2012-08-15 14:10:01 +00:00
parent cd0be9838e
commit eccd5b4b5e
1 changed files with 4 additions and 3 deletions

View File

@ -270,11 +270,12 @@ typedef msg_t (*tfunc_t)(void *);
/**
* @brief Verifies if the current thread has a termination request pending.
* @note This function can be called in any context.
*
* @retval TRUE termination request pended.
* @retval FALSE termination request not pended.
* @retval TRUE termination request pending.
* @retval FALSE termination request not pending.
*
* @api
* @special
*/
#define chThdShouldTerminate() (currp->p_flags & THD_TERMINATE)