From 8faa787ebe7a161a1947afd0d37525cd99d6b141 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 24 Feb 2016 15:30:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8942 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chregistry.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'os/rt/src') diff --git a/os/rt/src/chregistry.c b/os/rt/src/chregistry.c index 7d870897b..ec90b4168 100644 --- a/os/rt/src/chregistry.c +++ b/os/rt/src/chregistry.c @@ -181,6 +181,9 @@ thread_t *chRegNextThread(thread_t *tp) { /** * @brief Retrieves a thread pointer by name. + * @note The reference counter of the found thread is increased by one so + * it cannot be disposed incidentally after the pointer has been + * returned. * * @param[in] name the thread name * @return A pointer to the found thread. @@ -205,6 +208,9 @@ thread_t *chRegFindThreadByName(const char *name) { /** * @brief Confirms that a pointer is a valid thread pointer. + * @note The reference counter of the found thread is increased by one so + * it cannot be disposed incidentally after the pointer has been + * returned. * * @param[in] tp pointer to the thread * @return A pointer to the found thread. -- cgit v1.2.3